Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: 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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 199.3 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007297/0.0007297, allocations: 106.5 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001948/0.0001949, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1908, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08769/0.2786, allocations: 83.41 MB / 492.1 MB, free: 8.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.2788, allocations: 71.97 kB / 492.1 MB, free: 8.094 MB / 362.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: Performance of FrontEnd - DAE generated: time 0.2652/0.5441, allocations: 41.65 MB / 0.5213 GB, free: 84.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5441, allocations: 0 / 0.5213 GB, free: 84.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.761e-05/0.5442, allocations: 56.5 kB / 0.5213 GB, free: 84.54 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.004453/0.5486, allocations: 2.71 MB / 0.524 GB, free: 83.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5487, allocations: 7.812 kB / 0.524 GB, free: 83.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004191/0.5491, allocations: 284.1 kB / 0.5243 GB, free: 83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.5503, allocations: 1.072 MB / 0.5253 GB, free: 82.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.5505, allocations: 194.3 kB / 0.5255 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002732/0.5507, allocations: 263.1 kB / 0.5257 GB, free: 82.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003635/0.5544, allocations: 2.637 MB / 0.5283 GB, free: 80.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/0.5544, allocations: 4.125 kB / 0.5283 GB, free: 80.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002013/0.5546, allocations: 111.5 kB / 0.5284 GB, free: 80.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.425e-05/0.5547, allocations: 64.06 kB / 0.5285 GB, free: 80.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003048/0.5577, allocations: 1.941 MB / 0.5304 GB, free: 79.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.5687, allocations: 9.693 MB / 0.5398 GB, free: 69.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004707/0.5734, allocations: 2.81 MB / 0.5426 GB, free: 66.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.5748, allocations: 1.083 MB / 0.5436 GB, free: 65.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.887e-05/0.5749, allocations: 22 kB / 0.5437 GB, free: 65.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001332/0.5762, allocations: 0.9586 MB / 0.5446 GB, free: 64.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=218): time 4.479e-06/0.5763, allocations: 0 / 0.5446 GB, free: 64.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=218): time 0.01198/0.5882, allocations: 5.58 MB / 0.5501 GB, free: 58.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.5883, allocations: 85.34 kB / 0.5501 GB, free: 58.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.5897, allocations: 1.183 MB / 0.5513 GB, free: 57.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.5898, allocations: 69.7 kB / 0.5514 GB, free: 57.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004986/0.5903, allocations: 0.9124 MB / 0.5523 GB, free: 56.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004041/0.5908, allocations: 0.6877 MB / 0.5529 GB, free: 55.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.5909, allocations: 48 kB / 0.553 GB, free: 55.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.591, allocations: 395 kB / 0.5533 GB, free: 55.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.5921, allocations: 0.7038 MB / 0.554 GB, free: 54.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.5934, allocations: 1.27 MB / 0.5553 GB, free: 53.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002588/0.596, allocations: 1.909 MB / 0.5571 GB, free: 50.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.596, allocations: 4 kB / 0.5571 GB, free: 50.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.004964/0.601, allocations: 3.066 MB / 0.5601 GB, free: 47.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.601, allocations: 15.94 kB / 0.5601 GB, free: 47.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.6011, allocations: 16 kB / 0.5602 GB, free: 47.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003032/0.6041, allocations: 1.19 MB / 0.5613 GB, free: 46.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008267/0.6049, allocations: 283.5 kB / 0.5616 GB, free: 46.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01697/0.6219, allocations: 22.36 MB / 0.5834 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/0.6239, allocations: 341.4 kB / 0.5838 GB, free: 21.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.624, allocations: 96 kB / 0.5838 GB, free: 21.88 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 () * Number of clocked 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.0009787/0.625, allocations: 499.7 kB / 0.5843 GB, free: 21.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.6254, allocations: 178 kB / 0.5845 GB, free: 21.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004479/0.6259, allocations: 226.3 kB / 0.5847 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.6259, allocations: 24 kB / 0.5847 GB, free: 20.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.53e-05/0.626, allocations: 16 kB / 0.5847 GB, free: 20.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.626, allocations: 15.89 kB / 0.5848 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.6283, allocations: 2.093 MB / 0.5868 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.6283, allocations: 0 / 0.5868 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006188/0.6289, allocations: 135.8 kB / 0.5869 GB, free: 18.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002805/0.6318, allocations: 1.178 MB / 0.5881 GB, free: 17.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/0.6319, allocations: 43.97 kB / 0.5881 GB, free: 17.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01749/0.6494, allocations: 22.32 MB / 0.6099 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6494, allocations: 0 / 0.6099 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006615/0.656, allocations: 3.643 MB / 0.6135 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008286/0.6569, allocations: 478.2 kB / 0.6139 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/0.6571, allocations: 43.92 kB / 0.614 GB, free: 5.293 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008837/0.658, allocations: 127.9 kB / 0.6141 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000656/0.6587, allocations: 273.5 kB / 0.6144 GB, free: 4.902 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.6588, allocations: 55.98 kB / 0.6144 GB, free: 4.848 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009531/0.6598, allocations: 0.7321 MB / 0.6151 GB, free: 4.113 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6598, allocations: 0 / 0.6151 GB, free: 4.113 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002213/0.662, allocations: 0.7954 MB / 0.6159 GB, free: 3.316 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 () * Number of clocked 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.0003058/0.6623, allocations: 172.5 kB / 0.6161 GB, free: 3.137 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006181/0.6685, allocations: 4.055 MB / 0.62 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.6685, allocations: 2.562 kB / 0.62 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003878/0.6724, allocations: 3.064 MB / 0.623 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.6745, allocations: 361.2 kB / 0.6234 GB, free: 11.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008719/0.6832, allocations: 5.741 MB / 0.629 GB, free: 5.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.6845, allocations: 1.549 MB / 0.6305 GB, free: 4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/0.6849, allocations: 91.42 kB / 0.6306 GB, free: 3.91 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.685, allocations: 0 / 0.6306 GB, free: 3.91 MB / 410.7 MB Notification: Performance of Templates: time 0.2589/0.9439, allocations: 135.1 MB / 0.7625 GB, free: 50.76 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CauerLowPassSC/CauerLowPassSC.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches