Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001479, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001594/0.001594, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.42/1.42, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001331/0.001331, allocations: 48.22 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08354, allocations: 46.64 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005366/0.08894, allocations: 4.307 MB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.09169, allocations: 1.626 MB / 334.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004537/0.09217, allocations: 11.94 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000434/0.09264, allocations: 126.8 kB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.09368, allocations: 357.6 kB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.09418, allocations: 223.7 kB / 335.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001035/0.09522, allocations: 0.9784 MB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003438/0.09558, allocations: 249.3 kB / 336.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.0961, allocations: 370.8 kB / 336.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005627/0.09667, allocations: 430.3 kB / 337.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.09683, allocations: 96 kB / 337.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004003/0.09723, allocations: 215.9 kB / 337.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.0974, allocations: 195.3 kB / 337.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.09781, allocations: 418 kB / 338.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.09887, allocations: 1.16 MB / 339.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.09889, allocations: 0 / 339.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.0989, allocations: 4 kB / 339.4 MB, free: 8.969 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.09893, allocations: 0 / 339.4 MB, free: 8.969 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002553/0.1015, allocations: 1.099 MB / 340.5 MB, free: 7.816 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1015, allocations: 8.031 kB / 340.5 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.1017, allocations: 76.09 kB / 340.6 MB, free: 7.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008669/0.1026, allocations: 0.5107 MB / 341.1 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.404e-05/0.1027, allocations: 71.56 kB / 341.2 MB, free: 7.113 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.1029, allocations: 76.48 kB / 341.3 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.104, allocations: 0.598 MB / 341.9 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.104, allocations: 7.906 kB / 341.9 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.392e-05/0.1041, allocations: 23.98 kB / 341.9 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.1041, allocations: 12 kB / 341.9 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.1053, allocations: 0.5282 MB / 342.4 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.1086, allocations: 2.291 MB / 344.7 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000955/0.1095, allocations: 481.1 kB / 345.2 MB, free: 2.961 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005203/0.1101, allocations: 269.9 kB / 345.5 MB, free: 2.691 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.1101, allocations: 8 kB / 345.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1101, allocations: 42.56 kB / 345.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.1102, allocations: 0 / 345.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01293/0.1231, allocations: 3.542 MB / 349.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.1232, allocations: 85.67 kB / 349.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006768/0.1239, allocations: 0.5331 MB / 349.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/0.1239, allocations: 37.7 kB / 349.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.1241, allocations: 312.3 kB / 350 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.1243, allocations: 212.9 kB / 350.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.1245, allocations: 110.3 kB / 350.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1246, allocations: 366.8 kB / 350.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005637/0.1252, allocations: 249.2 kB / 350.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005981/0.1258, allocations: 348.4 kB / 351.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.127, allocations: 0.6059 MB / 351.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.127, allocations: 4 kB / 351.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001503/0.1285, allocations: 0.749 MB / 352.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1286, allocations: 4 kB / 352.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1286, allocations: 4 kB / 352.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.1288, allocations: 28.84 kB / 352.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008113/0.1296, allocations: 175.8 kB / 352.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.1307, allocations: 1.432 MB / 354.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005854/0.1313, allocations: 43.91 kB / 354.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.655e-05/0.1314, allocations: 23.98 kB / 354.3 MB, free: 9.43 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002725/0.1317, allocations: 205.6 kB / 354.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.1318, allocations: 59.41 kB / 354.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.1336, allocations: 0.8413 MB / 355.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.1336, allocations: 7.938 kB / 355.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1336, allocations: 4 kB / 355.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1336, allocations: 3.984 kB / 355.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003612/0.1373, allocations: 1.842 MB / 357.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.1373, allocations: 0 / 357.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.1378, allocations: 103.9 kB / 357.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002281/0.1401, allocations: 473.4 kB / 357.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.1402, allocations: 15.98 kB / 357.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004923/0.1451, allocations: 3.157 MB / 361 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.1451, allocations: 0 / 361 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002868/0.148, allocations: 1.371 MB / 362.4 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.1483, allocations: 212.2 kB / 362.6 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.1485, allocations: 15.98 kB / 362.6 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006279/0.1491, allocations: 43.97 kB / 362.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.1492, allocations: 48.5 kB / 362.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.973e-05/0.1493, allocations: 23.92 kB / 362.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004733/0.1498, allocations: 386.9 kB / 363.1 MB, free: 404 kB / 302.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.1498, allocations: 0 / 363.1 MB, free: 404 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007166/0.1505, allocations: 184 kB / 363.3 MB, free: 220 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000272/0.1508, allocations: 143.2 kB / 363.4 MB, free: 68 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.1523, allocations: 0.7324 MB / 364.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1523, allocations: 0 / 364.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009352/0.1533, allocations: 0.5179 MB / 364.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006637/0.154, allocations: 97.91 kB / 364.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.1567, allocations: 1.463 MB / 366.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.1572, allocations: 0.8965 MB / 367.1 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002965/0.1575, allocations: 68.83 kB / 367.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.1577, allocations: 55.41 kB / 367.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1577, allocations: 0 / 367.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of Templates: time 0.01743/0.1751, allocations: 10.25 MB / 377.5 MB, free: 1.891 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches