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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001135/0.001135, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2256, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004921/0.2305, allocations: 4.389 MB / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002561/0.2331, allocations: 1.64 MB / 416 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003134/0.2335, allocations: 11.94 kB / 416 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.2338, allocations: 134.8 kB / 416.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007334/0.2346, allocations: 349.6 kB / 416.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.235, allocations: 243.7 kB / 416.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008227/0.2359, allocations: 0.9745 MB / 417.6 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003304/0.2362, allocations: 253.1 kB / 417.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004168/0.2366, allocations: 378.7 kB / 418.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004477/0.2371, allocations: 430.3 kB / 418.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.2372, allocations: 100 kB / 418.8 MB, free: 8.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003538/0.2376, allocations: 215.9 kB / 419 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.2377, allocations: 199.3 kB / 419.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003079/0.238, allocations: 414.1 kB / 419.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009979/0.239, allocations: 1.169 MB / 420.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2391, allocations: 0 / 420.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2391, allocations: 0 / 420.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.2391, allocations: 0 / 420.8 MB, free: 6.711 MB / 334.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.002298/0.2414, allocations: 1.099 MB / 421.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2414, allocations: 8.031 kB / 421.9 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.2417, allocations: 84.08 kB / 422 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007185/0.2424, allocations: 0.5223 MB / 422.5 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.612e-05/0.2425, allocations: 71.58 kB / 422.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.2427, allocations: 76.39 kB / 422.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.2438, allocations: 0.6058 MB / 423.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.2438, allocations: 0 / 423.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.542e-05/0.2439, allocations: 24 kB / 423.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2439, allocations: 12 kB / 423.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.245, allocations: 0.5282 MB / 423.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.2482, allocations: 2.295 MB / 426.1 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009543/0.2491, allocations: 477.2 kB / 426.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005271/0.2497, allocations: 262 kB / 426.8 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.2497, allocations: 8.234 kB / 426.8 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.2498, allocations: 38.56 kB / 426.9 MB, free: 368 kB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.235e-06/0.2498, allocations: 0 / 426.9 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.013/0.2628, allocations: 3.549 MB / 430.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.2629, allocations: 93.61 kB / 430.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/0.2635, allocations: 0.5371 MB / 431 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.257e-05/0.2636, allocations: 33.7 kB / 431.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.2638, allocations: 324.2 kB / 431.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.264, allocations: 205 kB / 431.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.2642, allocations: 110.2 kB / 431.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.2643, allocations: 374.8 kB / 432.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000547/0.2649, allocations: 241.2 kB / 432.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005954/0.2655, allocations: 348.4 kB / 432.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.2666, allocations: 0.6019 MB / 433.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.2667, allocations: 0 / 433.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00155/0.2682, allocations: 0.7449 MB / 434 MB, free: 9.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.2682, allocations: 8.312 kB / 434 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2683, allocations: 4 kB / 434 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000188/0.2685, allocations: 32.84 kB / 434 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/0.2693, allocations: 163.8 kB / 434.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.2703, allocations: 1.43 MB / 435.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006045/0.2709, allocations: 43.98 kB / 435.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.271, allocations: 23.98 kB / 435.7 MB, free: 7.164 MB / 350.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.00029/0.2713, allocations: 201.7 kB / 435.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.2714, allocations: 63.25 kB / 435.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.2732, allocations: 0.8415 MB / 436.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.2733, allocations: 11.94 kB / 436.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.2733, allocations: 0 / 436.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.2733, allocations: 3.984 kB / 436.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003623/0.2769, allocations: 1.846 MB / 438.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-06/0.2769, allocations: 0 / 438.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005358/0.2775, allocations: 107.8 kB / 438.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/0.2798, allocations: 476.2 kB / 439.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.223e-05/0.2799, allocations: 12 kB / 439.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004858/0.2848, allocations: 3.154 MB / 442.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2848, allocations: 0 / 442.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.2877, allocations: 1.375 MB / 443.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.288, allocations: 204.3 kB / 443.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.2881, allocations: 12 kB / 444 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006132/0.2887, allocations: 47.97 kB / 444 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.2889, allocations: 52.42 kB / 444.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.2889, allocations: 20 kB / 444.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004495/0.2894, allocations: 386.9 kB / 444.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2894, allocations: 0 / 444.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007081/0.2901, allocations: 196.1 kB / 444.6 MB, free: 13.93 MB / 366.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.0002708/0.2904, allocations: 151.1 kB / 444.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.2919, allocations: 0.7365 MB / 445.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2919, allocations: 0 / 445.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008816/0.2928, allocations: 0.5211 MB / 446 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/0.2935, allocations: 94.03 kB / 446.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.2962, allocations: 1.497 MB / 447.6 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.2966, allocations: 0.9042 MB / 448.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002386/0.2969, allocations: 55.41 kB / 448.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2969, allocations: 0 / 448.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of Templates: time 0.01521/0.3121, allocations: 11.85 MB / 460.4 MB, free: 14.07 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches