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: translateModel(Modelica.Electrical.Analog.Examples.CauerLowPassSC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC") translateModel(Modelica.Electrical.Analog.Examples.CauerLowPassSC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C7.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC") [: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.0009659/0.000966, allocations: 183.4 kB / 8.48 MB, free: 1.797 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.122/1.122, allocations: 205.2 MB / 214.1 MB, free: 13.85 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.0009182/0.0009182, allocations: 85.45 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.346e-06/8.396e-06, allocations: 4 kB / 315 MB, free: 8.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2197, allocations: 47.55 MB / 362.5 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08876/0.3086, allocations: 80.61 MB / 443.1 MB, free: 5.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.3088, allocations: 67.95 kB / 443.2 MB, free: 5.258 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: Performance of FrontEnd: time 0.1024/0.4112, allocations: 40.14 MB / 483.3 MB, free: 13.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.261e-05/0.4113, allocations: 55.98 kB / 483.4 MB, free: 13 MB / 378.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.005143/0.4165, allocations: 2.637 MB / 486 MB, free: 10.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.4165, allocations: 8.031 kB / 486 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005406/0.4171, allocations: 288.5 kB / 486.3 MB, free: 10 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.4187, allocations: 1.024 MB / 487.3 MB, free: 8.934 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.332e-05/0.4188, allocations: 91.97 kB / 487.4 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002779/0.4191, allocations: 163.9 kB / 487.6 MB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003251/0.4223, allocations: 1.709 MB / 489.3 MB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003822/0.4262, allocations: 2.19 MB / 491.5 MB, free: 4.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.025e-05/0.4263, allocations: 7.938 kB / 491.5 MB, free: 4.637 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001658/0.4264, allocations: 7.906 kB / 491.5 MB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.161e-05/0.4265, allocations: 67.98 kB / 491.6 MB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/0.441, allocations: 9.247 MB / 0.4891 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.4436, allocations: 1.683 MB / 0.4907 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.4451, allocations: 0.9733 MB / 0.4917 GB, free: 8.445 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.856e-05/0.4452, allocations: 22 kB / 0.4917 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.4465, allocations: 0.824 MB / 0.4925 GB, free: 7.586 MB / 394.7 MB Notification: Performance of pre-optimization done (n=218): time 4.979e-06/0.4465, allocations: 0 / 0.4925 GB, free: 7.586 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.00484/0.4514, allocations: 2.254 MB / 0.4947 GB, free: 5.285 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.4515, allocations: 85.39 kB / 0.4948 GB, free: 5.191 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.453, allocations: 0.8436 MB / 0.4956 GB, free: 4.336 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001416/0.4532, allocations: 29.7 kB / 0.4956 GB, free: 4.301 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006361/0.4538, allocations: 0.7992 MB / 0.4964 GB, free: 3.488 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000556/0.4544, allocations: 0.6589 MB / 0.4971 GB, free: 2.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.991e-05/0.4545, allocations: 0 / 0.4971 GB, free: 2.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4546, allocations: 395 kB / 0.4974 GB, free: 2.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.4557, allocations: 0.6299 MB / 0.4981 GB, free: 1.797 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.4572, allocations: 1.168 MB / 0.4992 GB, free: 408 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1264/0.5837, allocations: 0.7039 MB / 0.4999 GB, free: 142.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.057e-05/0.5837, allocations: 5.625 kB / 0.4999 GB, free: 142.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.005097/0.5889, allocations: 2.682 MB / 0.5025 GB, free: 142 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.5889, allocations: 11.41 kB / 0.5025 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.74e-05/0.5889, allocations: 15.75 kB / 0.5025 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003006/0.5919, allocations: 1.105 MB / 0.5036 GB, free: 141.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009206/0.5929, allocations: 291.1 kB / 0.5039 GB, free: 141.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/0.6111, allocations: 21.05 MB / 0.5244 GB, free: 127.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002276/0.6134, allocations: 288.9 kB / 0.5247 GB, free: 127.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000278/0.6137, allocations: 92.69 kB / 0.5248 GB, free: 127.4 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.0003837/0.6141, allocations: 195.8 kB / 0.525 GB, free: 127.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/0.6144, allocations: 167.6 kB / 0.5252 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003713/0.6147, allocations: 190.7 kB / 0.5253 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.6148, allocations: 21.16 kB / 0.5254 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.244e-05/0.6148, allocations: 17.22 kB / 0.5254 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/0.6149, allocations: 13.72 kB / 0.5254 GB, free: 127.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002567/0.6174, allocations: 1.769 MB / 0.5271 GB, free: 126.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.6174, allocations: 7.406 kB / 0.5271 GB, free: 126.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007397/0.6182, allocations: 144.5 kB / 0.5273 GB, free: 126.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/0.6213, allocations: 1.09 MB / 0.5283 GB, free: 126.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.6215, allocations: 11.45 kB / 0.5283 GB, free: 126.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01798/0.6395, allocations: 21.03 MB / 0.5489 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6396, allocations: 0 / 0.5489 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005837/0.6454, allocations: 3.33 MB / 0.5521 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008623/0.6463, allocations: 451.2 kB / 0.5526 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.6466, allocations: 10.8 kB / 0.5526 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009943/0.6476, allocations: 114.3 kB / 0.5527 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/0.6479, allocations: 175.5 kB / 0.5528 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.648, allocations: 56.8 kB / 0.5529 GB, free: 108.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006665/0.6487, allocations: 0.5703 MB / 0.5535 GB, free: 107.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00223/0.651, allocations: 0.6873 MB / 0.5541 GB, free: 107.9 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.0002517/0.6512, allocations: 142.2 kB / 0.5543 GB, free: 107.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005188/0.6564, allocations: 3.424 MB / 0.5576 GB, free: 105.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.6565, allocations: 1.375 kB / 0.5576 GB, free: 105.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003635/0.6601, allocations: 2.54 MB / 0.5601 GB, free: 104 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.6616, allocations: 243.9 kB / 0.5603 GB, free: 103.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007999/0.6696, allocations: 3.852 MB / 0.5641 GB, free: 102.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/0.6709, allocations: 1.588 MB / 0.5656 GB, free: 101.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6709, allocations: 5.375 kB / 0.5656 GB, free: 101.3 MB / 394.7 MB Notification: Performance of Templates: time 0.04616/0.7171, allocations: 32.36 MB / 0.5972 GB, free: 77.28 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CauerLowPassSC/CauerLowPassSC.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CauerLowPassSC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches