Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.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 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 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 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.SingularTransfomer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|basicTransformer.i1|basicTransformer.i2",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer") translateModel(ModelicaTest.Electrical.SingularTransfomer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|basicTransformer.i1|basicTransformer.i2",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001103, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 175.5 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.7/1.7, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5258/0.5258, allocations: 43.57 MB / 314.6 MB, free: 9.074 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000648/0.000648, allocations: 12 kB / 383.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1932, allocations: 58.86 MB / 442.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.004053/0.1973, allocations: 2.124 MB / 444.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.199, allocations: 0.6166 MB / 445.5 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.1992, allocations: 7.938 kB / 445.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.1994, allocations: 27.77 kB / 445.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.1996, allocations: 59.47 kB / 445.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.1999, allocations: 55.94 kB / 445.7 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.2003, allocations: 266.8 kB / 446 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.2005, allocations: 64.78 kB / 446 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.2007, allocations: 103.6 kB / 446.1 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.201, allocations: 99.55 kB / 446.2 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.407e-05/0.201, allocations: 12 kB / 446.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.557e-05/0.201, allocations: 12 kB / 446.2 MB, free: 9.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.078e-05/0.2011, allocations: 39.83 kB / 446.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.248e-05/0.2012, allocations: 69.58 kB / 446.3 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.2015, allocations: 207.7 kB / 446.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.2015, allocations: 0 / 446.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2015, allocations: 0 / 446.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.2015, allocations: 0 / 446.6 MB, free: 9.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0008846/0.2024, allocations: 0.495 MB / 447 MB, free: 8.957 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.2024, allocations: 16 kB / 447.1 MB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.2025, allocations: 31.67 kB / 447.1 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000436/0.203, allocations: 235.4 kB / 447.3 MB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.203, allocations: 20.44 kB / 447.3 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.2031, allocations: 20 kB / 447.4 MB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003934/0.2035, allocations: 191.3 kB / 447.5 MB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2035, allocations: 0 / 447.5 MB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.2035, allocations: 8 kB / 447.6 MB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.2035, allocations: 8 kB / 447.6 MB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.2038, allocations: 145.6 kB / 447.7 MB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.2053, allocations: 0.8103 MB / 448.5 MB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.2055, allocations: 98.53 kB / 448.6 MB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.977e-05/0.2056, allocations: 52.83 kB / 448.7 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.2056, allocations: 192 / 448.7 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.2057, allocations: 34.5 kB / 448.7 MB, free: 7.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 8.82e-07/0.2057, allocations: 4 kB / 448.7 MB, free: 7.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001768/0.2075, allocations: 0.7602 MB / 449.5 MB, free: 6.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.2075, allocations: 55.41 kB / 449.5 MB, free: 6.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002302/0.2078, allocations: 219.6 kB / 449.7 MB, free: 6.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.2078, allocations: 25.7 kB / 449.8 MB, free: 6.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.2079, allocations: 163.8 kB / 449.9 MB, free: 5.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.98e-05/0.208, allocations: 55.25 kB / 450 MB, free: 5.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.066e-05/0.208, allocations: 4 kB / 450 MB, free: 5.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2081, allocations: 330.8 kB / 450.3 MB, free: 5.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.2083, allocations: 63.97 kB / 450.4 MB, free: 5.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.2084, allocations: 113.1 kB / 450.5 MB, free: 5.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.2086, allocations: 71.92 kB / 450.5 MB, free: 5.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2086, allocations: 0 / 450.5 MB, free: 5.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005142/0.2091, allocations: 291.5 kB / 450.8 MB, free: 4.902 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2091, allocations: 4 kB / 450.8 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2092, allocations: 0 / 450.8 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.2094, allocations: 81.83 kB / 450.9 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.2096, allocations: 27.98 kB / 450.9 MB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.2121, allocations: 2.812 MB / 453.7 MB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.2122, allocations: 15.98 kB / 453.8 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/0.2123, allocations: 8 kB / 453.8 MB, free: 1.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001591/0.2124, allocations: 137.7 kB / 453.9 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.907e-05/0.2125, allocations: 23.8 kB / 453.9 MB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.769e-05/0.2125, allocations: 25.94 kB / 454 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2125, allocations: 0 / 454 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.2126, allocations: 4.188 kB / 454 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2126, allocations: 4 kB / 454 MB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.213, allocations: 281.5 kB / 454.2 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.213, allocations: 0 / 454.2 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.854e-05/0.2131, allocations: 19.98 kB / 454.3 MB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000175/0.2132, allocations: 69.67 kB / 454.3 MB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.2133, allocations: 4 kB / 454.3 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3554/0.5686, allocations: 2.787 MB / 457.1 MB, free: 44.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.5687, allocations: 7.234 kB / 457.1 MB, free: 44.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007083/0.5694, allocations: 399.3 kB / 457.5 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.278e-05/0.5695, allocations: 103.3 kB / 457.6 MB, free: 43.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.5695, allocations: 4.656 kB / 457.6 MB, free: 43.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.5697, allocations: 24.91 kB / 457.6 MB, free: 43.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.5698, allocations: 18.58 kB / 457.7 MB, free: 43.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.5698, allocations: 6.094 kB / 457.7 MB, free: 43.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.5699, allocations: 152 kB / 457.8 MB, free: 43.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5699, allocations: 0 / 457.8 MB, free: 43.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.5703, allocations: 61.53 kB / 457.9 MB, free: 43.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * 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 (9): * Single equations (assignments): 7 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001228/0.5704, allocations: 96.75 kB / 458 MB, free: 43.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.5711, allocations: 427.4 kB / 458.4 MB, free: 43.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5711, allocations: 0 / 458.4 MB, free: 43.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.5714, allocations: 334 kB / 458.7 MB, free: 43.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000467/0.5719, allocations: 30.95 kB / 458.7 MB, free: 43.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009733/0.5729, allocations: 0.606 MB / 459.3 MB, free: 43.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.5731, allocations: 0.7489 MB / 460.1 MB, free: 42.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.648e-05/0.5732, allocations: 16 kB / 460.1 MB, free: 42.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.148e-05/0.5732, allocations: 15.97 kB / 460.1 MB, free: 42.33 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.5732, allocations: 7.172 kB / 460.1 MB, free: 42.32 MB / 382.1 MB Notification: Performance of Templates: time 0.005479/0.5787, allocations: 2.442 MB / 462.6 MB, free: 42.2 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches