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"}) [: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 4.0.0+maint.om/package.mo): time 0.000971/0.000971, allocations: 182.5 kB / 8.134 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.13/1.13, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0008874/0.0008874, allocations: 97.12 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09213/0.09305, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.275, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08424/0.3593, allocations: 81.82 MB / 468.8 MB, free: 4.965 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.3595, allocations: 76.52 kB / 468.9 MB, free: 4.891 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: 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.2404/0.5999, allocations: 43.89 MB / 0.5008 GB, free: 84.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.6, allocations: 9.125 kB / 0.5008 GB, free: 84.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.6003, allocations: 286.9 kB / 0.501 GB, free: 84.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.6015, allocations: 1.03 MB / 0.5021 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.384e-05/0.6016, allocations: 89.05 kB / 0.5021 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002375/0.6018, allocations: 158.3 kB / 0.5023 GB, free: 83.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002558/0.6044, allocations: 1.712 MB / 0.504 GB, free: 83.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002986/0.6074, allocations: 2.198 MB / 0.5061 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.678e-05/0.6074, allocations: 7.469 kB / 0.5061 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001574/0.6076, allocations: 2.906 kB / 0.5061 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/0.6076, allocations: 65.25 kB / 0.5062 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009999/0.6177, allocations: 9.244 MB / 0.5152 GB, free: 79.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.6197, allocations: 1.671 MB / 0.5168 GB, free: 79.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.6209, allocations: 0.9722 MB / 0.5178 GB, free: 78.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.522e-05/0.621, allocations: 20.28 kB / 0.5178 GB, free: 78.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.6222, allocations: 0.8204 MB / 0.5186 GB, free: 78.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=218): time 4.198e-06/0.6222, allocations: 5.594 kB / 0.5186 GB, free: 78.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=218): time 0.003816/0.6261, allocations: 2.243 MB / 0.5208 GB, free: 77.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.6261, allocations: 88.89 kB / 0.5209 GB, free: 77.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008201/0.6269, allocations: 0.8432 MB / 0.5217 GB, free: 76.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.272e-05/0.627, allocations: 35.02 kB / 0.5217 GB, free: 76.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.6274, allocations: 0.7988 MB / 0.5225 GB, free: 76.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004256/0.6278, allocations: 0.6573 MB / 0.5232 GB, free: 75.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.323e-05/0.6279, allocations: 8.688 kB / 0.5232 GB, free: 75.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.628, allocations: 398.5 kB / 0.5236 GB, free: 75.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.6292, allocations: 0.6208 MB / 0.5242 GB, free: 75.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.6304, allocations: 1.165 MB / 0.5253 GB, free: 74.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009894/0.6314, allocations: 0.7075 MB / 0.526 GB, free: 73.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.6315, allocations: 5.062 kB / 0.526 GB, free: 73.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.004374/0.6358, allocations: 2.681 MB / 0.5286 GB, free: 71.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.6359, allocations: 10.59 kB / 0.5286 GB, free: 71.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.6359, allocations: 20 kB / 0.5286 GB, free: 71.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/0.6388, allocations: 1.107 MB / 0.5297 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008355/0.6396, allocations: 292.8 kB / 0.53 GB, free: 70.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/0.6558, allocations: 21.05 MB / 0.5506 GB, free: 48.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.6577, allocations: 286.8 kB / 0.5508 GB, free: 48.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.6578, allocations: 96 kB / 0.5509 GB, free: 48.54 MB / 378.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.0003379/0.6582, allocations: 197.6 kB / 0.5511 GB, free: 48.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.6584, allocations: 167 kB / 0.5513 GB, free: 48.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003203/0.6587, allocations: 183.4 kB / 0.5515 GB, free: 48.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.6588, allocations: 24 kB / 0.5515 GB, free: 47.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.186e-05/0.6588, allocations: 16 kB / 0.5515 GB, free: 47.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.6588, allocations: 10.31 kB / 0.5515 GB, free: 47.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.6606, allocations: 1.792 MB / 0.5532 GB, free: 46.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.6606, allocations: 0 / 0.5532 GB, free: 46.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006901/0.6613, allocations: 140.1 kB / 0.5534 GB, free: 46.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002727/0.6641, allocations: 1.087 MB / 0.5544 GB, free: 45.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.6642, allocations: 14.94 kB / 0.5545 GB, free: 45.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0159/0.6801, allocations: 21.02 MB / 0.575 GB, free: 24.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.6801, allocations: 0 / 0.575 GB, free: 24.05 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005249/0.6854, allocations: 3.329 MB / 0.5782 GB, free: 20.91 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006247/0.6917, allocations: 4.672 MB / 0.5828 GB, free: 16.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007265/0.6924, allocations: 456.9 kB / 0.5832 GB, free: 16.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.6927, allocations: 4 kB / 0.5832 GB, free: 16.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009798/0.6937, allocations: 111.8 kB / 0.5833 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/0.694, allocations: 179 kB / 0.5835 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.6941, allocations: 55.66 kB / 0.5836 GB, free: 15.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006278/0.6948, allocations: 0.5802 MB / 0.5841 GB, free: 15.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00265/0.6974, allocations: 0.6779 MB / 0.5848 GB, free: 14.59 MB / 378.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.0002433/0.6977, allocations: 148.5 kB / 0.5849 GB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004449/0.7021, allocations: 3.418 MB / 0.5883 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.7021, allocations: 0 / 0.5883 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003095/0.7052, allocations: 2.539 MB / 0.5908 GB, free: 8.527 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.7066, allocations: 246.3 kB / 0.591 GB, free: 8.332 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007034/0.7136, allocations: 3.86 MB / 0.5948 GB, free: 4.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.7148, allocations: 1.622 MB / 0.5963 GB, free: 3.492 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7148, allocations: 4 kB / 0.5963 GB, free: 3.488 MB / 378.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