Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 107.3 kB / 18.4 MB, free: 4.59 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.001086/0.001086, allocations: 192 kB / 19.34 MB, free: 3.66 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.537/1.537, allocations: 222.9 MB / 243 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2649/0.2649, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 62.2 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1731, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.01021/0.1834, allocations: 7.72 MB / 478.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006439/0.1899, allocations: 2.365 MB / 480.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001632/0.1915, allocations: 31.94 kB / 480.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00465/0.1962, allocations: 1.816 MB / 482.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003331/0.1995, allocations: 0.8666 MB / 483.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.202, allocations: 0.8859 MB / 484.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002603/0.2046, allocations: 1.407 MB / 485.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001757/0.2064, allocations: 1.008 MB / 486.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.2075, allocations: 0.5994 MB / 487.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008236/0.2083, allocations: 0.7315 MB / 488.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.2085, allocations: 112 kB / 488.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009453/0.2094, allocations: 323.8 kB / 488.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002582/0.2097, allocations: 306.9 kB / 488.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006564/0.2104, allocations: 0.6491 MB / 489.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00228/0.2127, allocations: 1.748 MB / 491.3 MB, free: 9.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.2127, allocations: 4 kB / 491.3 MB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.2127, allocations: 4 kB / 491.3 MB, free: 9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.314e-05/0.2127, allocations: 0 / 491.3 MB, free: 9 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.007781/0.2205, allocations: 2.377 MB / 493.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.423e-05/0.2206, allocations: 16.03 kB / 493.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009844/0.2305, allocations: 1.389 MB / 495 MB, free: 5.164 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.2326, allocations: 0.6206 MB / 495.7 MB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.2327, allocations: 99.02 kB / 495.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.233, allocations: 128.4 kB / 495.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003139/0.2361, allocations: 1.487 MB / 497.4 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.618e-05/0.2362, allocations: 19.83 kB / 497.4 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/0.2363, allocations: 48 kB / 497.4 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-05/0.2364, allocations: 40 kB / 497.5 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002959/0.2393, allocations: 1.505 MB / 499 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009992/0.2494, allocations: 5.326 MB / 0.4925 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/0.2524, allocations: 2.178 MB / 0.4946 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.2536, allocations: 0.6475 MB / 0.4953 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002021/0.2538, allocations: 110.1 kB / 0.4954 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.661e-05/0.2539, allocations: 51.5 kB / 0.4954 GB, free: 8.273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.559e-06/0.2539, allocations: 0 / 0.4954 GB, free: 8.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009196/0.2631, allocations: 3.09 MB / 0.4984 GB, free: 5.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.2633, allocations: 94.09 kB / 0.4985 GB, free: 5.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008005/0.2641, allocations: 461.9 kB / 0.499 GB, free: 4.578 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.2642, allocations: 41.7 kB / 0.499 GB, free: 4.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004621/0.2647, allocations: 467.5 kB / 0.4994 GB, free: 4.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004939/0.2652, allocations: 433.7 kB / 0.4999 GB, free: 3.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004129/0.2656, allocations: 210.8 kB / 0.5001 GB, free: 3.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.2659, allocations: 386.7 kB / 0.5004 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009194/0.2668, allocations: 454.4 kB / 0.5009 GB, free: 2.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.268, allocations: 0.7036 MB / 0.5015 GB, free: 1.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.2701, allocations: 1.198 MB / 0.5027 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.2701, allocations: 0 / 0.5027 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.386/0.6561, allocations: 1.59 MB / 0.5043 GB, free: 47.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/0.6562, allocations: 12.19 kB / 0.5043 GB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/0.6562, allocations: 8.516 kB / 0.5043 GB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/0.658, allocations: 0.5262 MB / 0.5048 GB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009137/0.659, allocations: 199.2 kB / 0.505 GB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002084/0.6592, allocations: 52.06 kB / 0.505 GB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007867/0.66, allocations: 119 kB / 0.5052 GB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.6601, allocations: 52.55 kB / 0.5052 GB, free: 47.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0005315/0.6606, allocations: 271.4 kB / 0.5055 GB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.6608, allocations: 81 kB / 0.5055 GB, free: 47.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003054/0.6639, allocations: 1.566 MB / 0.5071 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.6639, allocations: 12.78 kB / 0.5071 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.664, allocations: 2.625 kB / 0.5071 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.664, allocations: 11.41 kB / 0.5071 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005147/0.6691, allocations: 2.852 MB / 0.5099 GB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.6692, allocations: 1.812 kB / 0.5099 GB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.6698, allocations: 146.7 kB / 0.51 GB, free: 45.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.6713, allocations: 0.5204 MB / 0.5105 GB, free: 45.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.844e-05/0.6714, allocations: 28.92 kB / 0.5106 GB, free: 45.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002938/0.6717, allocations: 68.7 kB / 0.5106 GB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6717, allocations: 2.812 kB / 0.5106 GB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003947/0.6757, allocations: 2.332 MB / 0.5129 GB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006422/0.6764, allocations: 287.9 kB / 0.5132 GB, free: 44.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.6765, allocations: 21.64 kB / 0.5132 GB, free: 44.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000692/0.6772, allocations: 44.91 kB / 0.5132 GB, free: 44.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.6775, allocations: 79.38 kB / 0.5133 GB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-05/0.6776, allocations: 34.16 kB / 0.5134 GB, free: 44.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.6781, allocations: 313.7 kB / 0.5136 GB, free: 44.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6781, allocations: 0 / 0.5136 GB, free: 44.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001133/0.6792, allocations: 340.3 kB / 0.514 GB, free: 44.08 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003146/0.6795, allocations: 163.9 kB / 0.5141 GB, free: 43.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003147/0.6827, allocations: 1.369 MB / 0.5155 GB, free: 43.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6827, allocations: 0 / 0.5155 GB, free: 43.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001846/0.6846, allocations: 0.7631 MB / 0.5162 GB, free: 43.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009934/0.6856, allocations: 106.4 kB / 0.5163 GB, free: 43.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003967/0.6896, allocations: 2.036 MB / 0.5183 GB, free: 42.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.6903, allocations: 1.041 MB / 0.5193 GB, free: 41.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005147/0.6908, allocations: 110.5 kB / 0.5194 GB, free: 41.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.691, allocations: 60.95 kB / 0.5195 GB, free: 41.36 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.691, allocations: 3.938 kB / 0.5195 GB, free: 41.35 MB / 382.1 MB Notification: Performance of Templates: time 0.02124/0.7123, allocations: 13.8 MB / 0.533 GB, free: 33.15 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches