Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC.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.CauerLowPassSC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CauerLowPassSC",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.001374/0.001374, allocations: 175.4 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.289/1.289, allocations: 221.3 MB / 235.5 MB, free: 2.895 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.00099/0.00099, allocations: 92.05 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.072e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.0897, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2908/0.3805, allocations: 82.56 MB / 476.9 MB, free: 4.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.3808, allocations: 75.95 kB / 477 MB, free: 4.832 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Analog/Examples/Utilities/SwitchedCapacitor.mo:41:3-41:79:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.1062/0.4869, allocations: 41.66 MB / 0.5065 GB, free: 11.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.487, allocations: 0 / 0.5065 GB, free: 11.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001171/0.4871, allocations: 63.98 kB / 0.5065 GB, free: 10.96 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005668/0.4928, allocations: 2.526 MB / 0.509 GB, free: 8.355 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.4929, allocations: 12.03 kB / 0.509 GB, free: 8.344 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004808/0.4934, allocations: 350.8 kB / 0.5094 GB, free: 7.992 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004453/0.4938, allocations: 288.5 kB / 0.5096 GB, free: 7.707 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.4953, allocations: 1.028 MB / 0.5106 GB, free: 6.633 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.4954, allocations: 201.1 kB / 0.5108 GB, free: 6.434 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003255/0.4958, allocations: 259.9 kB / 0.5111 GB, free: 6.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004202/0.5, allocations: 2.564 MB / 0.5136 GB, free: 3.477 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.943e-05/0.5, allocations: 4 kB / 0.5136 GB, free: 3.473 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002062/0.5002, allocations: 108 kB / 0.5137 GB, free: 3.367 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.195e-05/0.5003, allocations: 68 kB / 0.5138 GB, free: 3.301 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.5035, allocations: 1.878 MB / 0.5156 GB, free: 1.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/0.5168, allocations: 9.673 MB / 0.525 GB, free: 7.523 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005359/0.5222, allocations: 2.782 MB / 0.5277 GB, free: 4.734 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.5236, allocations: 1.055 MB / 0.5288 GB, free: 3.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.5237, allocations: 25.94 kB / 0.5288 GB, free: 3.652 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001456/0.5252, allocations: 0.9333 MB / 0.5297 GB, free: 2.711 MB / 410.7 MB Notification: Performance of pre-optimization done (n=218): time 5.35e-06/0.5252, allocations: 0 / 0.5297 GB, free: 2.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.00473/0.53, allocations: 2.48 MB / 0.5321 GB, free: 188 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.53, allocations: 81.39 kB / 0.5322 GB, free: 92 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.5315, allocations: 1.028 MB / 0.5332 GB, free: 15.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.5317, allocations: 61.7 kB / 0.5333 GB, free: 14.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007176/0.5324, allocations: 0.9167 MB / 0.5342 GB, free: 14.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006454/0.533, allocations: 0.6933 MB / 0.5349 GB, free: 13.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.5332, allocations: 48 kB / 0.5349 GB, free: 13.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.5334, allocations: 399 kB / 0.5353 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.5345, allocations: 0.6768 MB / 0.5359 GB, free: 12.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.5361, allocations: 1.228 MB / 0.5371 GB, free: 10.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.5374, allocations: 0.7671 MB / 0.5379 GB, free: 9.992 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/0.5374, allocations: 4 kB / 0.5379 GB, free: 9.988 MB / 426.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.00542/0.5429, allocations: 2.996 MB / 0.5408 GB, free: 6.945 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.5429, allocations: 12 kB / 0.5408 GB, free: 6.934 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.543, allocations: 16 kB / 0.5408 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003266/0.5462, allocations: 1.184 MB / 0.542 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000949/0.5472, allocations: 287.5 kB / 0.5423 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2175/0.7647, allocations: 22.25 MB / 0.564 GB, free: 96.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.7668, allocations: 344.2 kB / 0.5643 GB, free: 96.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002016/0.767, allocations: 91.38 kB / 0.5644 GB, free: 96.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 66 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R4.BooleanPulse.pulseStart,R4.BooleanPulse.pulseStart,R4.IdealCommutingSwitch1.control,R4.logicalSwitch.u1,$PRE.R5.BooleanPulse.pulseStart,R5.BooleanPulse.pulseStart,R5.IdealCommutingSwitch1.control,R5.logicalSwitch.u1,$PRE.R8.BooleanPulse.pulseStart,R8.BooleanPulse.pulseStart,R8.IdealCommutingSwitch1.control,R8.logicalSwitch.u1,$PRE.R9.BooleanPulse.pulseStart,R9.BooleanPulse.pulseStart,R9.IdealCommutingSwitch1.control,R9.logicalSwitch.u1,$PRE.R1.BooleanPulse.pulseStart,R1.BooleanPulse.pulseStart,R1.IdealCommutingSwitch1.control,R1.logicalSwitch.u1,$PRE.R2.BooleanPulse.pulseStart,R2.BooleanPulse.pulseStart,R2.IdealCommutingSwitch1.control,R2.logicalSwitch.u1,$PRE.R3.BooleanPulse.pulseStart,R3.BooleanPulse.pulseStart,R3.IdealCommutingSwitch1.control,R3.logicalSwitch.u1,$PRE.Rp1.BooleanPulse.pulseStart,Rp1.BooleanPulse.pulseStart,Rp1.IdealCommutingSwitch1.control,Rp1.logicalSwitch.u1,$PRE.R7.BooleanPulse.pulseStart,R7.BooleanPulse.pulseStart,R7.IdealCommutingSwitch1.control,R7.logicalSwitch.u1,$PRE.R10.BooleanPulse.pulseStart,R10.BooleanPulse.pulseStart,R10.IdealCommutingSwitch1.control,R10.logicalSwitch.u1,$PRE.R11.BooleanPulse.pulseStart,R11.BooleanPulse.pulseStart,R11.IdealCommutingSwitch1.control,R11.logicalSwitch.u1,R11.lessEqualThreshold.y,R10.lessEqualThreshold.y,R7.lessEqualThreshold.y,Rp1.lessEqualThreshold.y,R3.lessEqualThreshold.y,R2.lessEqualThreshold.y,R1.lessEqualThreshold.y,R9.lessEqualThreshold.y,R8.lessEqualThreshold.y,R5.lessEqualThreshold.y,R4.lessEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 187 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(1,100.0%) 9,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004144/0.7675, allocations: 274.8 kB / 0.5647 GB, free: 95.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000337/0.7678, allocations: 183.2 kB / 0.5649 GB, free: 95.87 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005117/0.7683, allocations: 222.4 kB / 0.5651 GB, free: 95.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.7683, allocations: 20.34 kB / 0.5651 GB, free: 95.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.732e-05/0.7684, allocations: 18.06 kB / 0.5651 GB, free: 95.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.7684, allocations: 13.08 kB / 0.5651 GB, free: 95.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.7713, allocations: 2.097 MB / 0.5672 GB, free: 95.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.7713, allocations: 0 / 0.5672 GB, free: 95.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007158/0.772, allocations: 141.6 kB / 0.5673 GB, free: 95.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003255/0.7753, allocations: 1.159 MB / 0.5684 GB, free: 95.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002056/0.7755, allocations: 42.81 kB / 0.5685 GB, free: 95.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01917/0.7947, allocations: 22.24 MB / 0.5902 GB, free: 78.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7947, allocations: 5.328 kB / 0.5902 GB, free: 78.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00608/0.8008, allocations: 3.567 MB / 0.5937 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008481/0.8017, allocations: 469.3 kB / 0.5941 GB, free: 76.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.8019, allocations: 38.77 kB / 0.5942 GB, free: 76.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009841/0.8029, allocations: 134.4 kB / 0.5943 GB, free: 76.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006854/0.8036, allocations: 276.2 kB / 0.5946 GB, free: 76.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.8037, allocations: 55.17 kB / 0.5946 GB, free: 76.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008174/0.8045, allocations: 0.7213 MB / 0.5953 GB, free: 75.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8045, allocations: 0 / 0.5953 GB, free: 75.88 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002317/0.8068, allocations: 0.8004 MB / 0.5961 GB, free: 75.74 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 16 (C1.v,C2.v,C3.v,C4.v,C7.v,R4.Capacitor.v,R5.Capacitor.v,R8.Capacitor.v,R9.Capacitor.v,R1.Capacitor.v,R2.Capacitor.v,R3.Capacitor.v,Rp1.Capacitor.v,R7.Capacitor.v,R10.Capacitor.v,R11.Capacitor.v) * Number of discrete variables: 44 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,R4.BooleanPulse.pulseStart,R4.IdealCommutingSwitch1.control,R4.logicalSwitch.u1,R5.BooleanPulse.pulseStart,R5.IdealCommutingSwitch1.control,R5.logicalSwitch.u1,R8.BooleanPulse.pulseStart,R8.IdealCommutingSwitch1.control,R8.logicalSwitch.u1,R9.BooleanPulse.pulseStart,R9.IdealCommutingSwitch1.control,R9.logicalSwitch.u1,R1.BooleanPulse.pulseStart,R1.IdealCommutingSwitch1.control,R1.logicalSwitch.u1,R2.BooleanPulse.pulseStart,R2.IdealCommutingSwitch1.control,R2.logicalSwitch.u1,R3.BooleanPulse.pulseStart,R3.IdealCommutingSwitch1.control,R3.logicalSwitch.u1,Rp1.BooleanPulse.pulseStart,Rp1.IdealCommutingSwitch1.control,Rp1.logicalSwitch.u1,R7.BooleanPulse.pulseStart,R7.IdealCommutingSwitch1.control,R7.logicalSwitch.u1,R10.BooleanPulse.pulseStart,R10.IdealCommutingSwitch1.control,R10.logicalSwitch.u1,R11.BooleanPulse.pulseStart,R11.IdealCommutingSwitch1.control,R11.logicalSwitch.u1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(1,100.0%) 9,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00535/0.8122, allocations: 4.199 MB / 0.6002 GB, free: 73.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005312/0.8175, allocations: 3.932 MB / 0.604 GB, free: 71.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.8176, allocations: 0 / 0.604 GB, free: 71.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003465/0.8211, allocations: 2.99 MB / 0.6069 GB, free: 69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.8227, allocations: 334.1 kB / 0.6073 GB, free: 68.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0079/0.8306, allocations: 4.258 MB / 0.6114 GB, free: 66.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.8319, allocations: 1.594 MB / 0.613 GB, free: 66.06 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008119/0.8327, allocations: 150.1 kB / 0.6131 GB, free: 66.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000822/0.8336, allocations: 0.7764 MB / 0.6139 GB, free: 65.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8336, allocations: 0 / 0.6139 GB, free: 65.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07495/0.9086, allocations: 47.95 MB / 0.6607 GB, free: 33.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.9088, allocations: 176.2 kB / 0.6609 GB, free: 33.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.7/4.609, allocations: 0 / 0.6609 GB, free: 33.47 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CauerLowPassSC_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CauerLowPassSC.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat does not exist to compare? outputFormat=mat