Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001031/0.001031, allocations: 196 kB / 8.538 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.151/1.151, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008716/0.0008716, allocations: 90.66 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09308/0.09398, allocations: 56.89 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07941/0.1734, allocations: 51.48 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.3848, allocations: 82.63 MB / 477.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.385, allocations: 75.42 kB / 477.4 MB, free: 10.17 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.1044/0.4894, allocations: 43.95 MB / 0.5091 GB, free: 4.023 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.4894, allocations: 10.81 kB / 0.5092 GB, free: 4.016 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004966/0.4899, allocations: 288.5 kB / 0.5094 GB, free: 3.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.4915, allocations: 1.024 MB / 0.5104 GB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.451e-05/0.4916, allocations: 87.98 kB / 0.5105 GB, free: 2.578 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002818/0.4919, allocations: 159.9 kB / 0.5107 GB, free: 2.422 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003186/0.4951, allocations: 1.705 MB / 0.5123 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003747/0.4988, allocations: 2.198 MB / 0.5145 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.906e-05/0.4989, allocations: 0 / 0.5145 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.4991, allocations: 15.84 kB / 0.5145 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.961e-05/0.4991, allocations: 67.98 kB / 0.5146 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01329/0.5124, allocations: 9.251 MB / 0.5236 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.5149, allocations: 1.672 MB / 0.5252 GB, free: 3.168 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.5163, allocations: 0.9625 MB / 0.5262 GB, free: 2.203 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.907e-05/0.5164, allocations: 26 kB / 0.5262 GB, free: 2.176 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001288/0.5177, allocations: 0.8318 MB / 0.527 GB, free: 1.332 MB / 394.7 MB Notification: Performance of pre-optimization done (n=218): time 3.506e-06/0.5177, allocations: 0 / 0.527 GB, free: 1.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.004513/0.5222, allocations: 2.242 MB / 0.5292 GB, free: 15.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.5223, allocations: 85.39 kB / 0.5293 GB, free: 14.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.5233, allocations: 0.8475 MB / 0.5301 GB, free: 14.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.5234, allocations: 25.7 kB / 0.5301 GB, free: 14.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005/0.5239, allocations: 0.807 MB / 0.5309 GB, free: 13.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004723/0.5244, allocations: 0.6543 MB / 0.5316 GB, free: 12.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.304e-05/0.5245, allocations: 0 / 0.5316 GB, free: 12.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.5247, allocations: 399 kB / 0.5319 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.5258, allocations: 0.6298 MB / 0.5325 GB, free: 11.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.5271, allocations: 1.164 MB / 0.5337 GB, free: 10.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.5282, allocations: 0.7046 MB / 0.5344 GB, free: 9.449 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.5282, allocations: 7.984 kB / 0.5344 GB, free: 9.441 MB / 410.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.005011/0.5332, allocations: 2.673 MB / 0.537 GB, free: 6.719 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.5332, allocations: 4 kB / 0.537 GB, free: 6.715 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.5332, allocations: 22.42 kB / 0.537 GB, free: 6.695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003162/0.5364, allocations: 1.107 MB / 0.5381 GB, free: 5.555 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009601/0.5374, allocations: 287.5 kB / 0.5384 GB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02094/0.5583, allocations: 21.05 MB / 0.5589 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.5604, allocations: 289.8 kB / 0.5592 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/0.5606, allocations: 92 kB / 0.5593 GB, free: 14.48 MB / 442.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.0003914/0.561, allocations: 196.6 kB / 0.5595 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.5613, allocations: 169.9 kB / 0.5596 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003724/0.5617, allocations: 188.9 kB / 0.5598 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.5617, allocations: 20 kB / 0.5598 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.024e-05/0.5618, allocations: 16 kB / 0.5599 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.5618, allocations: 11.95 kB / 0.5599 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/0.564, allocations: 1.786 MB / 0.5616 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.564, allocations: 0 / 0.5616 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007598/0.5648, allocations: 135.9 kB / 0.5617 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003116/0.5679, allocations: 1.095 MB / 0.5628 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/0.5681, allocations: 11.98 kB / 0.5628 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.13/0.6981, allocations: 21.02 MB / 0.5834 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.6981, allocations: 0 / 0.5834 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005505/0.7036, allocations: 3.333 MB / 0.5866 GB, free: 140.1 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00666/0.7103, allocations: 4.667 MB / 0.5912 GB, free: 139.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006862/0.711, allocations: 450.6 kB / 0.5916 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002575/0.7113, allocations: 6.906 kB / 0.5916 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009856/0.7123, allocations: 112.6 kB / 0.5917 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/0.7126, allocations: 175.6 kB / 0.5919 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.7127, allocations: 60.19 kB / 0.5919 GB, free: 139.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0006338/0.7134, allocations: 0.5707 MB / 0.5925 GB, free: 139.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002447/0.7158, allocations: 0.6812 MB / 0.5932 GB, free: 139.1 MB / 442.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.0002357/0.7161, allocations: 142.4 kB / 0.5933 GB, free: 139 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004323/0.7204, allocations: 3.426 MB / 0.5966 GB, free: 137.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.7204, allocations: 0 / 0.5966 GB, free: 137.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003086/0.7235, allocations: 2.536 MB / 0.5991 GB, free: 136.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.7246, allocations: 248.3 kB / 0.5993 GB, free: 136.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006561/0.7312, allocations: 3.852 MB / 0.6031 GB, free: 135.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.7323, allocations: 1.632 MB / 0.6047 GB, free: 134.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7323, allocations: 0 / 0.6047 GB, free: 134.6 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CauerLowPassSC_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CauerLowPassSC.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat does not exist to compare? outputFormat=mat