Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002764/0.002763, allocations: 175.6 kB / 8.148 MB, free: 2.203 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.768/1.768, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001308/0.001307, allocations: 87.5 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.749e-05, allocations: 4 kB / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3092, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.4323, allocations: 80.61 MB / 442.4 MB, free: 5.414 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4327, allocations: 68.45 kB / 442.5 MB, free: 5.348 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.1776/0.6103, allocations: 40.14 MB / 482.7 MB, free: 13.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002016/0.6106, allocations: 55.98 kB / 482.7 MB, free: 13.09 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.01054/0.6211, allocations: 2.63 MB / 485.3 MB, free: 10.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.6212, allocations: 8.031 kB / 485.3 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001342/0.6225, allocations: 288.5 kB / 485.6 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003296/0.6259, allocations: 1.028 MB / 486.7 MB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.6261, allocations: 91.98 kB / 486.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008678/0.627, allocations: 159.9 kB / 486.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007366/0.6344, allocations: 1.708 MB / 488.6 MB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008558/0.643, allocations: 2.194 MB / 490.8 MB, free: 4.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.032e-05/0.6431, allocations: 4 kB / 490.8 MB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004009/0.6435, allocations: 11.89 kB / 490.8 MB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.029e-05/0.6436, allocations: 64 kB / 490.9 MB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02694/0.6706, allocations: 9.247 MB / 0.4884 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005098/0.6757, allocations: 1.683 MB / 0.49 GB, free: 9.508 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/0.6787, allocations: 0.9666 MB / 0.491 GB, free: 8.543 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001991/0.679, allocations: 22 kB / 0.491 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002625/0.6816, allocations: 0.8279 MB / 0.4918 GB, free: 7.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=218): time 6.412e-06/0.6817, allocations: 4 kB / 0.4918 GB, free: 7.676 MB / 394.7 MB Notification: Performance of matching and sorting (n=218): time 0.009159/0.6908, allocations: 2.25 MB / 0.494 GB, free: 5.379 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.691, allocations: 85.39 kB / 0.4941 GB, free: 5.285 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.6932, allocations: 0.8397 MB / 0.4949 GB, free: 4.434 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000443/0.6937, allocations: 33.7 kB / 0.495 GB, free: 4.395 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.6951, allocations: 0.8055 MB / 0.4957 GB, free: 3.578 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001352/0.6966, allocations: 0.6582 MB / 0.4964 GB, free: 2.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/0.6968, allocations: 4 kB / 0.4964 GB, free: 2.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002918/0.6971, allocations: 407.9 kB / 0.4968 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002304/0.6994, allocations: 0.6221 MB / 0.4974 GB, free: 1.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00295/0.7024, allocations: 1.168 MB / 0.4985 GB, free: 488 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1327/0.8351, allocations: 0.7053 MB / 0.4992 GB, free: 141.9 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.68e-05/0.8352, allocations: 6 kB / 0.4992 GB, free: 141.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.009076/0.8443, allocations: 2.614 MB / 0.5018 GB, free: 141.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.8443, allocations: 11.42 kB / 0.5018 GB, free: 141.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/0.8444, allocations: 17.84 kB / 0.5018 GB, free: 141.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005022/0.8494, allocations: 1.053 MB / 0.5028 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.8514, allocations: 291.4 kB / 0.5031 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03021/0.8816, allocations: 20.92 MB / 0.5235 GB, free: 127.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002561/0.8842, allocations: 243.3 kB / 0.5238 GB, free: 127.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003106/0.8846, allocations: 94.5 kB / 0.5239 GB, free: 127.3 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,(3,77.8%) 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 prepare postOptimizeDAE: time 0.0005092/0.8851, allocations: 118.9 kB / 0.524 GB, free: 127.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004884/0.8856, allocations: 168.5 kB / 0.5241 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005983/0.8862, allocations: 184.2 kB / 0.5243 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.8863, allocations: 22.97 kB / 0.5243 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.402e-05/0.8863, allocations: 15.56 kB / 0.5243 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.8864, allocations: 15.3 kB / 0.5244 GB, free: 127.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003636/0.89, allocations: 1.803 MB / 0.5261 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/0.8901, allocations: 0 / 0.5261 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.8916, allocations: 142.9 kB / 0.5263 GB, free: 127 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00583/0.8975, allocations: 1.096 MB / 0.5273 GB, free: 126.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003855/0.8979, allocations: 11.53 kB / 0.5273 GB, free: 126.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03043/0.9283, allocations: 21.03 MB / 0.5479 GB, free: 110 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.9284, allocations: 3.531 kB / 0.5479 GB, free: 110 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01104/0.9394, allocations: 3.331 MB / 0.5511 GB, free: 108.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/0.9409, allocations: 459.2 kB / 0.5516 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004996/0.9414, allocations: 9.219 kB / 0.5516 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/0.9436, allocations: 123.3 kB / 0.5517 GB, free: 108.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006321/0.9443, allocations: 172.2 kB / 0.5519 GB, free: 108.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/0.9444, allocations: 56.61 kB / 0.5519 GB, free: 108.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001088/0.9455, allocations: 0.5672 MB / 0.5525 GB, free: 107.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003197/0.9488, allocations: 0.6694 MB / 0.5531 GB, free: 107.8 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.0004389/0.9492, allocations: 137.9 kB / 0.5533 GB, free: 107.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00879/0.958, allocations: 3.435 MB / 0.5566 GB, free: 105.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.9581, allocations: 4.125 kB / 0.5566 GB, free: 105.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006682/0.9648, allocations: 2.538 MB / 0.5591 GB, free: 103.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.9674, allocations: 239.6 kB / 0.5593 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/0.981, allocations: 3.899 MB / 0.5631 GB, free: 102 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002327/0.9834, allocations: 1.689 MB / 0.5648 GB, free: 101.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/0.9835, allocations: 0 / 0.5648 GB, free: 101.2 MB / 394.7 MB Notification: Performance of Templates: time 0.2848/1.268, allocations: 130.2 MB / 0.6919 GB, free: 135.1 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches