Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008672/0.0008674, allocations: 89.08 kB / 16.32 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009306/0.0009307, allocations: 180.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.3 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000257/0.0002574, allocations: 5.156 kB / 300.8 MB, free: 5.531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09522/0.09549, allocations: 50.43 MB / 351.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance): time 0.003878/0.0994, allocations: 3.133 MB / 354.4 MB, free: 8.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.1017, allocations: 1.305 MB / 355.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002401/0.1019, allocations: 12 kB / 355.7 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.1023, allocations: 127.3 kB / 355.8 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009994/0.1033, allocations: 442.2 kB / 356.3 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006938/0.104, allocations: 350.7 kB / 356.6 MB, free: 6.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.1045, allocations: 426 kB / 357 MB, free: 5.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.1057, allocations: 0.715 MB / 357.7 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.106, allocations: 167.3 kB / 357.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003055/0.1064, allocations: 219.1 kB / 358.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.329e-05/0.1064, allocations: 20 kB / 358.1 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003708/0.1068, allocations: 179.8 kB / 358.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.749e-05/0.1069, allocations: 83.61 kB / 358.4 MB, free: 4.223 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.434e-05/0.107, allocations: 93.52 kB / 358.5 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006152/0.1076, allocations: 0.5141 MB / 359 MB, free: 3.609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1076, allocations: 0 / 359 MB, free: 3.609 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1076, allocations: 0 / 359 MB, free: 3.609 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1076, allocations: 4 kB / 359 MB, free: 3.605 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001848/0.1095, allocations: 0.8232 MB / 359.8 MB, free: 2.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1095, allocations: 12.03 kB / 359.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003382/0.1129, allocations: 494.9 kB / 360.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.1134, allocations: 312.5 kB / 360.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/0.1135, allocations: 37.31 kB / 360.7 MB, free: 1.855 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-05/0.1136, allocations: 55.98 kB / 360.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.1147, allocations: 0.5258 MB / 361.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.1147, allocations: 0 / 361.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/0.1148, allocations: 31.89 kB / 361.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.1148, allocations: 16 kB / 361.3 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.1159, allocations: 0.5751 MB / 361.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002839/0.1187, allocations: 1.883 MB / 363.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.1206, allocations: 2.161 MB / 365.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.1211, allocations: 262.1 kB / 366.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.734e-05/0.1212, allocations: 97.45 kB / 366.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1212, allocations: 42.94 kB / 366.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.134e-06/0.1212, allocations: 0 / 366.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001659/0.1229, allocations: 0.7466 MB / 367 MB, free: 10.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.123, allocations: 67.84 kB / 367.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.1232, allocations: 186.2 kB / 367.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.1232, allocations: 33.7 kB / 367.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1233, allocations: 216.5 kB / 367.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.1235, allocations: 157.7 kB / 367.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.1235, allocations: 8 kB / 367.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1236, allocations: 338.8 kB / 368 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.1239, allocations: 157 kB / 368.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.1243, allocations: 242.5 kB / 368.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.1246, allocations: 188.8 kB / 368.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1246, allocations: 4 kB / 368.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00101/0.1257, allocations: 0.5357 MB / 369.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1257, allocations: 8 kB / 369.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.1257, allocations: 0 / 369.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/0.126, allocations: 84.73 kB / 369.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003928/0.1264, allocations: 99.89 kB / 369.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.1281, allocations: 1.648 MB / 371 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.1283, allocations: 51.52 kB / 371 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.1284, allocations: 16 kB / 371 MB, free: 6.699 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000196/0.1286, allocations: 169.7 kB / 371.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.538e-05/0.1287, allocations: 27.78 kB / 371.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.1297, allocations: 0.5511 MB / 371.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1298, allocations: 4 kB / 371.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1298, allocations: 0 / 371.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1298, allocations: 7.984 kB / 371.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.1314, allocations: 1.157 MB / 373 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1315, allocations: 4 kB / 373 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.1318, allocations: 83.83 kB / 373 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000258/0.1321, allocations: 76.88 kB / 373.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.1321, allocations: 19.92 kB / 373.1 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.1337, allocations: 1.633 MB / 374.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1337, allocations: 0 / 374.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.135, allocations: 0.8141 MB / 375.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9e-05/0.1351, allocations: 116.8 kB / 375.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.143e-05/0.1352, allocations: 7.984 kB / 375.7 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.1354, allocations: 24 kB / 375.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.624e-05/0.1355, allocations: 40.31 kB / 375.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.1355, allocations: 16 kB / 375.8 MB, free: 1.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001223/0.1357, allocations: 132.2 kB / 375.9 MB, free: 1.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1357, allocations: 0 / 375.9 MB, free: 1.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005504/0.1362, allocations: 151.6 kB / 376.1 MB, free: 1.414 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * 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: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002445/0.1365, allocations: 131.2 kB / 376.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.1376, allocations: 0.5737 MB / 376.8 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1376, allocations: 4 kB / 376.8 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005641/0.1382, allocations: 377.1 kB / 377.1 MB, free: 312 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.1386, allocations: 42.06 kB / 377.2 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.14, allocations: 1.013 MB / 378.2 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.1404, allocations: 0.8087 MB / 379 MB, free: 14.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000235/0.1407, allocations: 42.95 kB / 379 MB, free: 14.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/0.1408, allocations: 39.42 kB / 379.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1408, allocations: 0 / 379.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of Templates: time 0.008825/0.1496, allocations: 3.898 MB / 383 MB, free: 10.41 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches