Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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) 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(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009698/0.0009702, allocations: 93.33 kB / 16.95 MB, free: 6.098 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.001205/0.001205, allocations: 177.4 kB / 17.84 MB, free: 5.723 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.646/1.646, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.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.0004645/0.0004645, allocations: 11.94 kB / 280.8 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09729, allocations: 47.58 MB / 328.4 MB, free: 4.062 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003635/0.101, allocations: 2.863 MB / 331.2 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.1033, allocations: 1.315 MB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002064/0.1036, allocations: 4 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.1058, allocations: 1.715 MB / 334.3 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004416/0.1063, allocations: 135.1 kB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.107, allocations: 243.6 kB / 334.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.1086, allocations: 1.384 MB / 336 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002394/0.1089, allocations: 106.7 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003536/0.1092, allocations: 287.1 kB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.1096, allocations: 302.9 kB / 336.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.366e-05/0.1096, allocations: 27.98 kB / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.1098, allocations: 51.94 kB / 336.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005953/0.1104, allocations: 0.8298 MB / 337.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.1107, allocations: 388.3 kB / 338 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.1123, allocations: 2.082 MB / 340.1 MB, free: 8.305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1123, allocations: 0 / 340.1 MB, free: 8.305 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1123, allocations: 0 / 340.1 MB, free: 8.305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.1123, allocations: 3.938 kB / 340.1 MB, free: 8.301 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003175/0.1155, allocations: 2.43 MB / 342.5 MB, free: 5.809 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1156, allocations: 12.03 kB / 342.5 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002942/0.1159, allocations: 276.3 kB / 342.8 MB, free: 5.523 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.118, allocations: 1.693 MB / 344.5 MB, free: 3.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-05/0.1181, allocations: 62.7 kB / 344.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.1182, allocations: 47.92 kB / 344.6 MB, free: 3.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006908/0.1189, allocations: 391 kB / 345 MB, free: 3.266 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.119, allocations: 0 / 345 MB, free: 3.266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.119, allocations: 16 kB / 345 MB, free: 3.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.119, allocations: 12 kB / 345 MB, free: 3.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006765/0.1197, allocations: 339.7 kB / 345.3 MB, free: 2.906 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003676/0.1234, allocations: 2.911 MB / 348.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005948/0.124, allocations: 309 kB / 348.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.1243, allocations: 177.5 kB / 348.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/0.1244, allocations: 8.547 kB / 348.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.1244, allocations: 38.56 kB / 348.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.673e-06/0.1244, allocations: 0 / 348.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004359/0.1288, allocations: 2.378 MB / 351.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.1288, allocations: 85.58 kB / 351.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005983/0.1348, allocations: 5.439 MB / 356.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.158e-05/0.1349, allocations: 33.7 kB / 356.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.136, allocations: 1.207 MB / 357.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.1361, allocations: 173.5 kB / 358.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/0.1362, allocations: 8 kB / 358.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1363, allocations: 326 kB / 358.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003229/0.1366, allocations: 141.1 kB / 358.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003314/0.1369, allocations: 217.7 kB / 358.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.1373, allocations: 172.7 kB / 358.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1373, allocations: 0 / 358.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00109/0.1384, allocations: 0.684 MB / 359.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1384, allocations: 4 kB / 359.6 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1385, allocations: 4 kB / 359.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1385, allocations: 4 kB / 359.6 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.139, allocations: 119.8 kB / 359.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.139, allocations: 8.203 kB / 359.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/0.1394, allocations: 27.89 kB / 359.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.1394, allocations: 16 kB / 359.8 MB, free: 4.172 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.1405, allocations: 0.9192 MB / 360.7 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.1408, allocations: 268.5 kB / 361 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.1422, allocations: 0.7863 MB / 361.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.1422, allocations: 4 kB / 361.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1422, allocations: 0 / 361.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.1422, allocations: 7.984 kB / 361.8 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.1438, allocations: 1.477 MB / 363.2 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1438, allocations: 0 / 363.2 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.1442, allocations: 99.88 kB / 363.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003118/0.1446, allocations: 84.8 kB / 363.4 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.1446, allocations: 11.98 kB / 363.4 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005198/0.1451, allocations: 0.6344 MB / 364.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1451, allocations: 0 / 364.1 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.1466, allocations: 1.062 MB / 365.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006483/0.1473, allocations: 497.5 kB / 365.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.1475, allocations: 15.95 kB / 365.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.1479, allocations: 19.98 kB / 365.6 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.46e-05/0.148, allocations: 28.39 kB / 365.7 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.148, allocations: 16 kB / 365.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.004481/0.1525, allocations: 3.981 MB / 369.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1525, allocations: 0 / 369.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008052/0.1533, allocations: 204 kB / 369.9 MB, free: 9.941 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009931/0.1543, allocations: 429.5 kB / 370.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008043/0.1551, allocations: 380.9 kB / 370.7 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1551, allocations: 0 / 370.7 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004364/0.1556, allocations: 218.4 kB / 370.9 MB, free: 8.941 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.1566, allocations: 183.8 kB / 371 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008499/0.1651, allocations: 5.923 MB / 377 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.167, allocations: 1.818 MB / 378.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007415/0.1677, allocations: 271.6 kB / 379.1 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.168, allocations: 95.42 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.168, allocations: 0 / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of Templates: time 0.2229/0.3909, allocations: 13.89 MB / 393 MB, free: 47.05 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches