Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002324/0.002329, allocations: 178.3 kB / 8.15 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 85.27 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2814/0.2814, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.375e-06/8.776e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2816, allocations: 58.84 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.4918, allocations: 100.1 MB / 0.5631 GB, free: 15 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003728/0.4923, allocations: 79.45 kB / 0.5632 GB, free: 14.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1491/0.6414, allocations: 38.32 MB / 0.6006 GB, free: 8.141 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.655e-05/0.6415, allocations: 20 kB / 0.6006 GB, free: 8.121 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.008695/0.6502, allocations: 1.721 MB / 0.6023 GB, free: 6.352 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.6503, allocations: 8.031 kB / 0.6023 GB, free: 6.344 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01687/0.6672, allocations: 1.138 MB / 0.6034 GB, free: 5.203 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.6701, allocations: 0.6026 MB / 0.604 GB, free: 4.559 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.6703, allocations: 47.94 kB / 0.604 GB, free: 4.512 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004485/0.6708, allocations: 80 kB / 0.6041 GB, free: 4.434 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004582/0.6754, allocations: 1.423 MB / 0.6055 GB, free: 3.008 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003616/0.6791, allocations: 1.206 MB / 0.6067 GB, free: 1.758 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.178e-05/0.6792, allocations: 11.84 kB / 0.6067 GB, free: 1.746 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001707/0.6794, allocations: 0 / 0.6067 GB, free: 1.746 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.769e-05/0.6794, allocations: 39.98 kB / 0.6067 GB, free: 1.707 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01477/0.6942, allocations: 5.889 MB / 0.6125 GB, free: 11.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.6966, allocations: 0.9353 MB / 0.6134 GB, free: 10.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.6982, allocations: 0.5722 MB / 0.614 GB, free: 9.895 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002388/0.6984, allocations: 110 kB / 0.6141 GB, free: 9.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.6985, allocations: 51.56 kB / 0.6141 GB, free: 9.711 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 4.529e-06/0.6985, allocations: 0 / 0.6141 GB, free: 9.711 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.004307/0.7028, allocations: 1.236 MB / 0.6153 GB, free: 8.465 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.7029, allocations: 90.11 kB / 0.6154 GB, free: 8.359 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006449/0.7036, allocations: 340.9 kB / 0.6157 GB, free: 8.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.7037, allocations: 25.7 kB / 0.6157 GB, free: 7.988 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003384/0.7041, allocations: 489.8 kB / 0.6162 GB, free: 7.504 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004678/0.7045, allocations: 417.7 kB / 0.6166 GB, free: 7.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.946e-05/0.7047, allocations: 0 / 0.6166 GB, free: 7.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.7048, allocations: 358.7 kB / 0.617 GB, free: 6.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.7062, allocations: 410.7 kB / 0.6173 GB, free: 6.332 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.7077, allocations: 0.6493 MB / 0.618 GB, free: 5.574 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002038/0.7097, allocations: 0.5177 MB / 0.6185 GB, free: 5.051 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.7097, allocations: 4 kB / 0.6185 GB, free: 5.047 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005131/0.7149, allocations: 1.453 MB / 0.6199 GB, free: 3.578 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.7149, allocations: 8.125 kB / 0.6199 GB, free: 3.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.715, allocations: 8 kB / 0.6199 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003253/0.7182, allocations: 483.8 kB / 0.6204 GB, free: 3.094 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002214/0.7205, allocations: 207.7 kB / 0.6206 GB, free: 2.891 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01436/0.7348, allocations: 3.702 MB / 0.6242 GB, free: 15.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.7367, allocations: 86.95 kB / 0.6243 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002413/0.7369, allocations: 55.98 kB / 0.6243 GB, free: 14.93 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: admittance.v.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0005878/0.7375, allocations: 111.4 kB / 0.6244 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003978/0.7379, allocations: 79 kB / 0.6245 GB, free: 14.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006935/0.7449, allocations: 1.467 MB / 0.626 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.279e-05/0.745, allocations: 16 kB / 0.626 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.745, allocations: 3.906 kB / 0.626 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.618e-05/0.745, allocations: 11.91 kB / 0.626 GB, free: 13.22 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.7555, allocations: 2.631 MB / 0.6285 GB, free: 10.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.7556, allocations: 0 / 0.6285 GB, free: 10.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/0.7575, allocations: 147.8 kB / 0.6287 GB, free: 10.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003657/0.7612, allocations: 498.9 kB / 0.6292 GB, free: 9.898 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.7614, allocations: 7.984 kB / 0.6292 GB, free: 9.891 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/0.7768, allocations: 3.97 MB / 0.6331 GB, free: 5.801 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.7768, allocations: 3.938 kB / 0.6331 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009263/0.7861, allocations: 2.174 MB / 0.6352 GB, free: 3.594 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.7873, allocations: 287.7 kB / 0.6355 GB, free: 3.293 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002892/0.7876, allocations: 8 kB / 0.6355 GB, free: 3.285 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001772/0.7894, allocations: 40.03 kB / 0.6355 GB, free: 3.246 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/0.7898, allocations: 73.11 kB / 0.6356 GB, free: 3.176 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002046/0.79, allocations: 39.92 kB / 0.6356 GB, free: 3.137 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006143/0.7906, allocations: 247.2 kB / 0.6358 GB, free: 2.902 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002522/0.7932, allocations: 370.8 kB / 0.6362 GB, free: 2.539 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.000533/0.7937, allocations: 147 kB / 0.6363 GB, free: 2.383 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005561/0.7993, allocations: 1.516 MB / 0.6378 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/0.7994, allocations: 0 / 0.6378 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1593/0.9587, allocations: 0.9681 MB / 0.6388 GB, free: 177.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.9599, allocations: 52.19 kB / 0.6388 GB, free: 177.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.9701, allocations: 2.144 MB / 0.6409 GB, free: 177.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/0.9718, allocations: 1.18 MB / 0.6421 GB, free: 176.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.542e-06/0.9719, allocations: 0 / 0.6421 GB, free: 176.6 MB / 474.7 MB Notification: Performance of Templates: time 0.04066/1.013, allocations: 17.84 MB / 0.6595 GB, free: 176.1 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches