Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 108.6 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009232/0.0009232, allocations: 55.91 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2191, allocations: 50.45 MB / 407.1 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004278/0.2235, allocations: 4.386 MB / 411.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.2256, allocations: 1.642 MB / 413.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003026/0.2259, allocations: 8 kB / 413.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.2263, allocations: 99.22 kB / 413.2 MB, free: 21.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005723/0.2268, allocations: 307.7 kB / 413.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.2272, allocations: 207.8 kB / 413.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005397/0.2277, allocations: 0.9238 MB / 414.6 MB, free: 20.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.228, allocations: 206.2 kB / 414.8 MB, free: 20 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.2283, allocations: 326.7 kB / 415.1 MB, free: 19.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003177/0.2286, allocations: 390.3 kB / 415.5 MB, free: 19.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.2287, allocations: 52 kB / 415.6 MB, free: 19.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002865/0.229, allocations: 175.8 kB / 415.7 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.248e-05/0.2291, allocations: 151.3 kB / 415.9 MB, free: 18.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002257/0.2293, allocations: 370.1 kB / 416.3 MB, free: 18.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006461/0.23, allocations: 1.125 MB / 417.4 MB, free: 17.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.23, allocations: 0 / 417.4 MB, free: 17.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.23, allocations: 3.938 kB / 417.4 MB, free: 17.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.23, allocations: 0 / 417.4 MB, free: 17.43 MB / 298.7 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.00201/0.232, allocations: 1.091 MB / 418.5 MB, free: 16.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2321, allocations: 12.03 kB / 418.5 MB, free: 16.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.2323, allocations: 88 kB / 418.6 MB, free: 16.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005402/0.2329, allocations: 0.5067 MB / 419.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.258e-05/0.2329, allocations: 75.58 kB / 419.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.2331, allocations: 68.39 kB / 419.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008582/0.234, allocations: 0.6058 MB / 419.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.234, allocations: 7.984 kB / 419.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.735e-05/0.234, allocations: 24 kB / 419.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.2341, allocations: 12 kB / 419.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000935/0.235, allocations: 0.5243 MB / 420.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.2376, allocations: 2.299 MB / 422.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008075/0.2384, allocations: 486.8 kB / 423.2 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004495/0.2389, allocations: 277.9 kB / 423.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.2389, allocations: 8 kB / 423.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.2389, allocations: 38.56 kB / 423.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.924e-06/0.2389, allocations: 0 / 423.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01144/0.2504, allocations: 3.538 MB / 427 MB, free: 7.441 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.2504, allocations: 93.66 kB / 427.1 MB, free: 7.328 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005137/0.251, allocations: 0.5332 MB / 427.6 MB, free: 6.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.251, allocations: 33.7 kB / 427.7 MB, free: 6.746 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.2511, allocations: 312.3 kB / 428 MB, free: 6.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.2513, allocations: 212.8 kB / 428.2 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.2514, allocations: 114.3 kB / 428.3 MB, free: 6.105 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.869e-05/0.2515, allocations: 370.8 kB / 428.7 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.252, allocations: 237.2 kB / 428.9 MB, free: 5.504 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.2525, allocations: 352.4 kB / 429.2 MB, free: 5.129 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009922/0.2535, allocations: 0.6058 MB / 429.8 MB, free: 4.492 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2535, allocations: 0 / 429.8 MB, free: 4.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001242/0.2548, allocations: 0.7412 MB / 430.6 MB, free: 3.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2548, allocations: 8 kB / 430.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.2548, allocations: 4 kB / 430.6 MB, free: 3.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.2549, allocations: 32.83 kB / 430.6 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007063/0.2557, allocations: 171.8 kB / 430.8 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006777/0.2563, allocations: 1.324 MB / 432.1 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/0.2569, allocations: 39.92 kB / 432.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.2569, allocations: 27.98 kB / 432.2 MB, free: 2 MB / 298.7 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.0002186/0.2572, allocations: 211.2 kB / 432.4 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2573, allocations: 55.34 kB / 432.4 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.2588, allocations: 0.8451 MB / 433.3 MB, free: 0.875 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.2588, allocations: 15.94 kB / 433.3 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.2589, allocations: 0 / 433.3 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2589, allocations: 7.984 kB / 433.3 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003373/0.2622, allocations: 1.85 MB / 435.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2623, allocations: 0 / 435.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/0.2628, allocations: 107.8 kB / 435.3 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.2651, allocations: 478.8 kB / 435.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-05/0.2652, allocations: 12 kB / 435.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004516/0.2697, allocations: 2.89 MB / 438.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2697, allocations: 0 / 438.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03036/0.3001, allocations: 11.58 MB / 450.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003816/0.3005, allocations: 212.3 kB / 450.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.185e-05/0.3006, allocations: 16 kB / 450.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006581/0.3013, allocations: 39.97 kB / 450.5 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.3015, allocations: 52.48 kB / 450.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.3015, allocations: 16 kB / 450.5 MB, free: 15.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00047/0.302, allocations: 390.8 kB / 450.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.302, allocations: 0 / 450.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009463/0.3029, allocations: 280.1 kB / 451.2 MB, free: 14.45 MB / 330.7 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.0002713/0.3032, allocations: 151.1 kB / 451.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.3047, allocations: 0.7365 MB / 452.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3047, allocations: 0 / 452.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000865/0.3056, allocations: 0.5214 MB / 452.6 MB, free: 13.01 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/0.3063, allocations: 92.69 kB / 452.7 MB, free: 12.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.3099, allocations: 2.421 MB / 455.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.3103, allocations: 0.9204 MB / 456 MB, free: 9.504 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004132/0.3107, allocations: 80.8 kB / 456.1 MB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.311, allocations: 55.41 kB / 456.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.311, allocations: 0 / 456.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of Templates: time 0.02006/0.331, allocations: 13.7 MB / 469.9 MB, free: 11.76 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches