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.001234/0.001234, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 204.7 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2411, allocations: 50.55 MB / 409.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.0049/0.246, allocations: 4.37 MB / 413.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.2484, allocations: 1.66 MB / 415.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002436/0.2487, allocations: 8 kB / 415.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003166/0.249, allocations: 118.8 kB / 415.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007297/0.2498, allocations: 369.6 kB / 415.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004062/0.2502, allocations: 239.6 kB / 416 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008411/0.251, allocations: 0.9823 MB / 417 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003146/0.2513, allocations: 241.2 kB / 417.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.2518, allocations: 386.8 kB / 417.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004448/0.2522, allocations: 426.3 kB / 418 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.2523, allocations: 96 kB / 418.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.2527, allocations: 223.8 kB / 418.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.2528, allocations: 199.3 kB / 418.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003431/0.2532, allocations: 410.1 kB / 418.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.2542, allocations: 1.177 MB / 420.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2543, allocations: 0 / 420.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2543, allocations: 0 / 420.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.2543, allocations: 4 kB / 420.1 MB, free: 6.699 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.002297/0.2566, allocations: 1.087 MB / 421.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2566, allocations: 12.03 kB / 421.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002452/0.2569, allocations: 84.08 kB / 421.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007472/0.2576, allocations: 0.5184 MB / 421.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.78e-05/0.2577, allocations: 75.58 kB / 421.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/0.2579, allocations: 72.39 kB / 421.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.259, allocations: 0.6058 MB / 422.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.259, allocations: 0 / 422.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/0.2591, allocations: 20 kB / 422.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.2591, allocations: 20 kB / 422.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.2602, allocations: 0.5243 MB / 423.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003149/0.2633, allocations: 2.295 MB / 425.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009288/0.2643, allocations: 480.7 kB / 425.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.2648, allocations: 266.1 kB / 426.1 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.2648, allocations: 4 kB / 426.1 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.2649, allocations: 46.56 kB / 426.2 MB, free: 360 kB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.2649, allocations: 0 / 426.2 MB, free: 360 kB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01243/0.2773, allocations: 3.549 MB / 429.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.2774, allocations: 85.67 kB / 429.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006634/0.2781, allocations: 0.5332 MB / 430.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.2781, allocations: 37.7 kB / 430.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.2783, allocations: 312.2 kB / 430.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.2785, allocations: 216.9 kB / 430.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.2787, allocations: 114.2 kB / 431 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2788, allocations: 370.8 kB / 431.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.2794, allocations: 249.1 kB / 431.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.28, allocations: 348.4 kB / 432 MB, free: 10.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.2811, allocations: 0.5942 MB / 432.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2811, allocations: 7.938 kB / 432.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001449/0.2825, allocations: 0.7452 MB / 433.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.2826, allocations: 4 kB / 433.3 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.2826, allocations: 4 kB / 433.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/0.2827, allocations: 32.83 kB / 433.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007829/0.2835, allocations: 171.8 kB / 433.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.2846, allocations: 1.43 MB / 434.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.2851, allocations: 35.92 kB / 435 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-05/0.2852, allocations: 27.98 kB / 435 MB, free: 7.156 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.0002605/0.2854, allocations: 197.7 kB / 435.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.2856, allocations: 59.25 kB / 435.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.2873, allocations: 0.8415 MB / 436.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.2873, allocations: 15.94 kB / 436.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2874, allocations: 0 / 436.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.2874, allocations: 7.922 kB / 436.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.2909, allocations: 1.842 MB / 438 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2909, allocations: 0 / 438 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.2914, allocations: 111.9 kB / 438.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002212/0.2937, allocations: 472.2 kB / 438.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.764e-05/0.2937, allocations: 16 kB / 438.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004746/0.2985, allocations: 3.15 MB / 441.7 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2985, allocations: 4.031 kB / 441.7 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.3013, allocations: 1.371 MB / 443.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002793/0.3016, allocations: 204.3 kB / 443.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.808e-05/0.3016, allocations: 12 kB / 443.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005852/0.3022, allocations: 43.97 kB / 443.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.3024, allocations: 52.56 kB / 443.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.3024, allocations: 16 kB / 443.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004479/0.3029, allocations: 394.9 kB / 443.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3029, allocations: 0 / 443.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007082/0.3036, allocations: 188.1 kB / 444 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.0002639/0.3039, allocations: 151.1 kB / 444.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.3053, allocations: 0.7364 MB / 444.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.3053, allocations: 7.938 kB / 444.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008699/0.3062, allocations: 0.5217 MB / 445.4 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.0006615/0.3069, allocations: 89.98 kB / 445.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.3094, allocations: 1.46 MB / 446.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.3099, allocations: 0.9042 MB / 447.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002832/0.3102, allocations: 72.78 kB / 447.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.3103, allocations: 55.41 kB / 448 MB, free: 9.852 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3104, allocations: 0 / 448 MB, free: 9.852 MB / 366.1 MB Notification: Performance of Templates: time 0.01608/0.3265, allocations: 10.41 MB / 458.4 MB, free: 15.53 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/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