Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.3 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009621/0.0009619, allocations: 91.53 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.966e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09785, allocations: 50.42 MB / 394.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2973/0.3952, allocations: 79.36 MB / 473.7 MB, free: 8.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.3955, allocations: 73.52 kB / 473.8 MB, free: 8.051 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01483/0.4103, allocations: 5.596 MB / 479.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4104, allocations: 0 / 479.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.66e-05/0.4104, allocations: 12 kB / 479.4 MB, free: 2.426 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008469/0.4113, allocations: 0.5454 MB / 479.9 MB, free: 1.832 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.4113, allocations: 8.031 kB / 479.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.245e-05/0.4114, allocations: 66.53 kB / 480 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.436e-05/0.4115, allocations: 31.62 kB / 480 MB, free: 1.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.4119, allocations: 250.5 kB / 480.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.168e-05/0.4119, allocations: 80.17 kB / 480.4 MB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.696e-05/0.412, allocations: 28 kB / 480.4 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/0.4125, allocations: 291.3 kB / 480.7 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.4125, allocations: 7.938 kB / 480.7 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.4126, allocations: 12 kB / 480.7 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.4126, allocations: 8 kB / 480.7 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.4129, allocations: 178.2 kB / 480.9 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.4147, allocations: 1.143 MB / 482 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.415, allocations: 154.5 kB / 482.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.4152, allocations: 80.89 kB / 482.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.4153, allocations: 0 / 482.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.4156, allocations: 151.6 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.4156, allocations: 0 / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006642/0.4163, allocations: 224.7 kB / 482.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.4164, allocations: 110.8 kB / 482.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.4166, allocations: 208.8 kB / 482.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.4166, allocations: 29.7 kB / 483 MB, free: 14.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4167, allocations: 180 kB / 483.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.746e-05/0.4168, allocations: 55.17 kB / 483.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.4168, allocations: 4 kB / 483.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.4169, allocations: 338.8 kB / 483.5 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.4171, allocations: 56.56 kB / 483.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.4172, allocations: 128.2 kB / 483.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.4174, allocations: 65.08 kB / 483.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4174, allocations: 7.938 kB / 483.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003769/0.4178, allocations: 260.2 kB / 484 MB, free: 13.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.4178, allocations: 4 kB / 484 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.4178, allocations: 4 kB / 484 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002478/0.418, allocations: 56.97 kB / 484.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.4183, allocations: 47.92 kB / 484.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.4196, allocations: 1.408 MB / 485.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.4198, allocations: 43.7 kB / 485.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.4198, allocations: 8 kB / 485.6 MB, free: 11.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.4199, allocations: 125.8 kB / 485.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.42, allocations: 23.72 kB / 485.7 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.42, allocations: 29.91 kB / 485.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.42, allocations: 4 kB / 485.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.4201, allocations: 0 / 485.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4201, allocations: 0 / 485.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003367/0.4204, allocations: 325.4 kB / 486.1 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4204, allocations: 0 / 486.1 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.4206, allocations: 31.98 kB / 486.1 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.4208, allocations: 60.75 kB / 486.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.4208, allocations: 0 / 486.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.4219, allocations: 1.324 MB / 487.5 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.422, allocations: 3.938 kB / 487.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005958/0.4226, allocations: 332.7 kB / 487.8 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.685e-05/0.4227, allocations: 108.8 kB / 487.9 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.4227, allocations: 7.953 kB / 488 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.4229, allocations: 32.05 kB / 488 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.944e-05/0.423, allocations: 31.94 kB / 488 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.423, allocations: 4 kB / 488 MB, free: 9.098 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.4232, allocations: 161.4 kB / 488.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4232, allocations: 0 / 488.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003428/0.4235, allocations: 83.78 kB / 488.3 MB, free: 8.855 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009806/0.4245, allocations: 0.8699 MB / 489.1 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005132/0.425, allocations: 277.6 kB / 489.4 MB, free: 7.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4251, allocations: 4.375 kB / 489.4 MB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.4253, allocations: 190.6 kB / 489.6 MB, free: 7.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.4256, allocations: 32.42 kB / 489.6 MB, free: 7.441 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.4272, allocations: 0.5711 MB / 490.2 MB, free: 6.832 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.4275, allocations: 0.7635 MB / 491 MB, free: 6.043 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.4276, allocations: 22.08 kB / 491 MB, free: 6.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.4278, allocations: 83.41 kB / 491.1 MB, free: 5.938 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4278, allocations: 0 / 491.1 MB, free: 5.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01748/0.4453, allocations: 5.005 MB / 496.1 MB, free: 1.094 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.4455, allocations: 183.2 kB / 496.2 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.124, allocations: 4 kB / 496.2 MB, free: 0.8672 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat