Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002083/0.002082, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.473/2.473, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 89.72 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2988/0.2988, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.701e-05, allocations: 224 / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3968, allocations: 58.85 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.5825, allocations: 100.1 MB / 0.5637 GB, free: 15.16 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.5829, allocations: 83.89 kB / 0.5638 GB, free: 15.08 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1675/0.7505, allocations: 38.64 MB / 0.6015 GB, free: 7.977 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.7505, allocations: 3.938 kB / 0.6015 GB, free: 7.973 MB / 443.1 MB Notification: Performance of Transformations before backend: time 5.684e-05/0.7506, allocations: 24 kB / 0.6015 GB, free: 7.949 MB / 443.1 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.008279/0.7589, allocations: 1.694 MB / 0.6032 GB, free: 6.207 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.7589, allocations: 8.031 kB / 0.6032 GB, free: 6.199 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/0.7698, allocations: 1.056 MB / 0.6042 GB, free: 5.141 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.7717, allocations: 0.6065 MB / 0.6048 GB, free: 4.488 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.056e-05/0.7718, allocations: 48 kB / 0.6049 GB, free: 4.441 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003529/0.7722, allocations: 79.91 kB / 0.6049 GB, free: 4.363 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004369/0.7766, allocations: 1.423 MB / 0.6063 GB, free: 2.938 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003763/0.7804, allocations: 1.206 MB / 0.6075 GB, free: 1.688 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.265e-05/0.7805, allocations: 7.984 kB / 0.6075 GB, free: 1.68 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.7807, allocations: 3.984 kB / 0.6075 GB, free: 1.676 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.855e-05/0.7808, allocations: 36 kB / 0.6075 GB, free: 1.641 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/0.7954, allocations: 5.391 MB / 0.6128 GB, free: 11.98 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003764/0.7992, allocations: 2.301 MB / 0.6151 GB, free: 9.414 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001634/0.8009, allocations: 0.5858 MB / 0.6156 GB, free: 8.824 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002818/0.8012, allocations: 110.3 kB / 0.6157 GB, free: 8.695 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.026e-05/0.8013, allocations: 51.81 kB / 0.6158 GB, free: 8.637 MB / 459.1 MB Notification: Performance of pre-optimization done (n=129): time 4.789e-06/0.8013, allocations: 0 / 0.6158 GB, free: 8.637 MB / 459.1 MB Notification: Performance of matching and sorting (n=129): time 0.004576/0.8059, allocations: 1.314 MB / 0.6171 GB, free: 7.309 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.806, allocations: 94.45 kB / 0.6172 GB, free: 7.199 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006258/0.8066, allocations: 345 kB / 0.6175 GB, free: 6.859 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.8068, allocations: 29.7 kB / 0.6175 GB, free: 6.824 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/0.8072, allocations: 0.5134 MB / 0.618 GB, free: 6.305 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/0.8078, allocations: 413.7 kB / 0.6184 GB, free: 5.895 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.063e-05/0.8079, allocations: 3.938 kB / 0.6184 GB, free: 5.891 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.8081, allocations: 358.8 kB / 0.6188 GB, free: 5.531 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.8092, allocations: 398.6 kB / 0.6191 GB, free: 5.145 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.8106, allocations: 0.6415 MB / 0.6198 GB, free: 4.398 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002713/0.8133, allocations: 0.6503 MB / 0.6204 GB, free: 3.754 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-05/0.8134, allocations: 4 kB / 0.6204 GB, free: 3.75 MB / 459.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005632/0.819, allocations: 1.568 MB / 0.6219 GB, free: 2.168 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.8191, allocations: 11.98 kB / 0.6219 GB, free: 2.156 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/0.8191, allocations: 8.469 kB / 0.622 GB, free: 2.148 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/0.8217, allocations: 0.4967 MB / 0.6224 GB, free: 1.656 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.8233, allocations: 211.7 kB / 0.6226 GB, free: 1.449 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.8337, allocations: 4.134 MB / 0.6267 GB, free: 13.2 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.8351, allocations: 94.91 kB / 0.6268 GB, free: 13.1 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.8353, allocations: 59.92 kB / 0.6268 GB, free: 13.04 MB / 475.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" 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 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.0005219/0.8358, allocations: 177.3 kB / 0.627 GB, free: 12.86 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.8361, allocations: 79.05 kB / 0.6271 GB, free: 12.78 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004986/0.8411, allocations: 1.536 MB / 0.6286 GB, free: 11.23 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.798e-05/0.8412, allocations: 20 kB / 0.6286 GB, free: 11.21 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.8412, allocations: 0 / 0.6286 GB, free: 11.21 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.5e-05/0.8412, allocations: 7.969 kB / 0.6286 GB, free: 11.2 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007808/0.849, allocations: 2.712 MB / 0.6312 GB, free: 8.43 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.8491, allocations: 0 / 0.6312 GB, free: 8.43 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.8504, allocations: 147.8 kB / 0.6314 GB, free: 8.285 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/0.853, allocations: 0.491 MB / 0.6319 GB, free: 7.793 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/0.8533, allocations: 8 kB / 0.6319 GB, free: 7.785 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.8639, allocations: 4.141 MB / 0.6359 GB, free: 3.527 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.864, allocations: 0 / 0.6359 GB, free: 3.527 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006721/0.8707, allocations: 2.241 MB / 0.6381 GB, free: 1.254 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008326/0.8716, allocations: 295.6 kB / 0.6384 GB, free: 0.9453 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.8718, allocations: 8.016 kB / 0.6384 GB, free: 0.9375 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.873, allocations: 35.97 kB / 0.6384 GB, free: 0.9023 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/0.8734, allocations: 93.17 kB / 0.6385 GB, free: 0.8125 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.8735, allocations: 35.98 kB / 0.6386 GB, free: 0.7773 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0004479/0.874, allocations: 259 kB / 0.6388 GB, free: 0.5234 MB / 475.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.874, allocations: 0 / 0.6388 GB, free: 0.5234 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001984/0.876, allocations: 370.9 kB / 0.6392 GB, free: 160 kB / 475.1 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.0005255/0.8766, allocations: 146.5 kB / 0.6393 GB, free: 4 kB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.3205/1.197, allocations: 1.585 MB / 0.6408 GB, free: 122.3 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/1.197, allocations: 0 / 0.6408 GB, free: 122.3 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003029/1.2, allocations: 1.052 MB / 0.6419 GB, free: 122.1 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007787/1.201, allocations: 55.23 kB / 0.6419 GB, free: 122.1 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006877/1.208, allocations: 2.097 MB / 0.644 GB, free: 121.7 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008495/1.209, allocations: 1.107 MB / 0.6451 GB, free: 121 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004896/1.209, allocations: 70.56 kB / 0.6451 GB, free: 121 MB / 475.1 MB Notification: Performance of SimCode: time 1.202e-06/1.209, allocations: 0 / 0.6451 GB, free: 121 MB / 475.1 MB Notification: Performance of Templates: time 0.0442/1.254, allocations: 16.97 MB / 0.6617 GB, free: 120.3 MB / 475.1 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/jenkins1/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