Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 179.7 kB / 8.474 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.08/1.08, allocations: 205.2 MB / 214.1 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008173/0.0008175, allocations: 86.5 kB / 262.1 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08642/0.08726, allocations: 52.98 MB / 315.1 MB, free: 8.562 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.2746, allocations: 47.56 MB / 362.6 MB, free: 45.89 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0867/0.3614, allocations: 80.6 MB / 443.2 MB, free: 5.383 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.3617, allocations: 71.12 kB / 443.3 MB, free: 5.316 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 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.1122/0.4739, allocations: 42.84 MB / 486.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4739, allocations: 8 kB / 486.1 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000905/0.4748, allocations: 292.5 kB / 486.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.4766, allocations: 1.028 MB / 487.4 MB, free: 8.973 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.705e-05/0.4767, allocations: 88 kB / 487.5 MB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.477, allocations: 163.9 kB / 487.7 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003258/0.4803, allocations: 1.709 MB / 489.4 MB, free: 7.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00352/0.4838, allocations: 2.198 MB / 491.6 MB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.537e-05/0.4839, allocations: 0 / 491.6 MB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001597/0.4841, allocations: 7.906 kB / 491.6 MB, free: 4.672 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.164e-05/0.4841, allocations: 64 kB / 491.7 MB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.4973, allocations: 9.255 MB / 0.4892 GB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002607/0.5, allocations: 1.672 MB / 0.4908 GB, free: 9.469 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.5014, allocations: 0.9733 MB / 0.4918 GB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.5015, allocations: 23.69 kB / 0.4918 GB, free: 8.473 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001383/0.5029, allocations: 0.8279 MB / 0.4926 GB, free: 7.633 MB / 394.7 MB Notification: Performance of pre-optimization done (n=218): time 3.858e-06/0.5029, allocations: 0 / 0.4926 GB, free: 7.633 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.004659/0.5076, allocations: 2.254 MB / 0.4948 GB, free: 5.332 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.5076, allocations: 81.41 kB / 0.4949 GB, free: 5.242 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.5089, allocations: 0.8475 MB / 0.4957 GB, free: 4.383 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.509, allocations: 25.7 kB / 0.4957 GB, free: 4.352 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006876/0.5097, allocations: 0.8031 MB / 0.4965 GB, free: 3.535 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006053/0.5103, allocations: 0.6543 MB / 0.4972 GB, free: 2.871 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.958e-05/0.5104, allocations: 0 / 0.4972 GB, free: 2.871 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.5106, allocations: 399 kB / 0.4975 GB, free: 2.477 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.5116, allocations: 0.6299 MB / 0.4982 GB, free: 1.844 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.5131, allocations: 1.168 MB / 0.4993 GB, free: 456 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1134/0.6265, allocations: 0.7008 MB / 0.5 GB, free: 141.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.597e-05/0.6266, allocations: 8.281 kB / 0.5 GB, free: 141.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.004875/0.6315, allocations: 2.676 MB / 0.5026 GB, free: 141.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.6315, allocations: 8.359 kB / 0.5026 GB, free: 141.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/0.6315, allocations: 17.69 kB / 0.5026 GB, free: 141.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002915/0.6344, allocations: 1.112 MB / 0.5037 GB, free: 141.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008854/0.6353, allocations: 289.9 kB / 0.504 GB, free: 141.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01694/0.6523, allocations: 21.04 MB / 0.5245 GB, free: 126.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.6542, allocations: 292.3 kB / 0.5248 GB, free: 126.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.6543, allocations: 92.62 kB / 0.5249 GB, free: 126.6 MB / 394.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.0003377/0.6547, allocations: 192.7 kB / 0.5251 GB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.6549, allocations: 169.5 kB / 0.5252 GB, free: 126.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003405/0.6552, allocations: 190.6 kB / 0.5254 GB, free: 126.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.6553, allocations: 17.94 kB / 0.5254 GB, free: 126.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-05/0.6553, allocations: 20.25 kB / 0.5255 GB, free: 126.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.6553, allocations: 13.84 kB / 0.5255 GB, free: 126.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.6574, allocations: 1.77 MB / 0.5272 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6574, allocations: 112 / 0.5272 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000703/0.6581, allocations: 149.5 kB / 0.5274 GB, free: 126.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002822/0.6609, allocations: 1.088 MB / 0.5284 GB, free: 126 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.6611, allocations: 17.52 kB / 0.5284 GB, free: 126 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01655/0.6776, allocations: 21.03 MB / 0.549 GB, free: 109.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.6776, allocations: 3.969 kB / 0.549 GB, free: 109.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005194/0.6828, allocations: 3.331 MB / 0.5522 GB, free: 107.7 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006363/0.6892, allocations: 4.677 MB / 0.5568 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007403/0.69, allocations: 454 kB / 0.5572 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/0.6902, allocations: 3.312 kB / 0.5572 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.6913, allocations: 117.1 kB / 0.5573 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/0.6916, allocations: 177.1 kB / 0.5575 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.6917, allocations: 56.84 kB / 0.5576 GB, free: 105 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006856/0.6924, allocations: 0.5782 MB / 0.5581 GB, free: 104.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002953/0.6954, allocations: 0.6828 MB / 0.5588 GB, free: 104.6 MB / 394.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.0002975/0.6957, allocations: 137.8 kB / 0.5589 GB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00496/0.7007, allocations: 3.43 MB / 0.5623 GB, free: 102.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.7007, allocations: 0 / 0.5623 GB, free: 102.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/0.7043, allocations: 2.533 MB / 0.5647 GB, free: 100.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.7057, allocations: 249.9 kB / 0.565 GB, free: 100.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007161/0.7129, allocations: 3.872 MB / 0.5688 GB, free: 98.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.7139, allocations: 1.621 MB / 0.5703 GB, free: 97.04 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7139, allocations: 0 / 0.5703 GB, free: 97.04 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CauerLowPassSC_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CauerLowPassSC.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat does not exist to compare? outputFormat=mat