Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001422/0.001422, allocations: 103 kB / 17.74 MB, free: 5.355 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.001381/0.001381, allocations: 188.5 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 43.94 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2643, allocations: 49.44 MB / 401.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005365/0.2697, allocations: 4.37 MB / 405.8 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.2725, allocations: 1.574 MB / 407.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004106/0.273, allocations: 11.94 kB / 407.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004063/0.2734, allocations: 130.9 kB / 407.5 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008255/0.2743, allocations: 357.6 kB / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.2747, allocations: 235.6 kB / 408.1 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009192/0.2757, allocations: 0.9784 MB / 409 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/0.276, allocations: 241.2 kB / 409.3 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.2765, allocations: 374.7 kB / 409.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004999/0.277, allocations: 434.2 kB / 410.1 MB, free: 200 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.2771, allocations: 96 kB / 410.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003699/0.2775, allocations: 211.9 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.2777, allocations: 203.3 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00035/0.278, allocations: 414.1 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.2792, allocations: 1.165 MB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2792, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2792, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.2792, allocations: 0 / 412.1 MB, free: 14.12 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.002489/0.2817, allocations: 1.083 MB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2818, allocations: 12.03 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.2819, allocations: 80 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008185/0.2828, allocations: 0.5184 MB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-05/0.2829, allocations: 71.58 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.2831, allocations: 68.48 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.2842, allocations: 0.6059 MB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.2842, allocations: 3.938 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.2843, allocations: 20 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.2843, allocations: 16 kB / 414.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.2854, allocations: 0.5243 MB / 415.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003339/0.2887, allocations: 2.291 MB / 417.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009404/0.2897, allocations: 481 kB / 417.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005149/0.2902, allocations: 274.7 kB / 418.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.2903, allocations: 4 kB / 418.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.2903, allocations: 38.56 kB / 418.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.2903, allocations: 0 / 418.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01325/0.3036, allocations: 3.547 MB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.3037, allocations: 81.67 kB / 421.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007726/0.3044, allocations: 0.5409 MB / 422.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.811e-05/0.3045, allocations: 33.7 kB / 422.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.3048, allocations: 324.2 kB / 422.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.3049, allocations: 208.9 kB / 422.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/0.3052, allocations: 114.2 kB / 423 MB, free: 2.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3053, allocations: 366.8 kB / 423.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000554/0.3059, allocations: 249.2 kB / 423.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000607/0.3065, allocations: 356.4 kB / 424 MB, free: 1.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.3077, allocations: 0.6058 MB / 424.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3077, allocations: 0 / 424.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001547/0.3092, allocations: 0.7372 MB / 425.3 MB, free: 444 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3093, allocations: 8 kB / 425.3 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3093, allocations: 4 kB / 425.3 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.3095, allocations: 37.14 kB / 425.4 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.3103, allocations: 163.8 kB / 425.5 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.3115, allocations: 1.422 MB / 427 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.3121, allocations: 39.92 kB / 427 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.3122, allocations: 24.12 kB / 427 MB, free: 14.59 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.0003019/0.3125, allocations: 209.8 kB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.3127, allocations: 63.25 kB / 427.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.3145, allocations: 0.8335 MB / 428.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.3145, allocations: 11.94 kB / 428.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.3145, allocations: 0 / 428.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3145, allocations: 3.984 kB / 428.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.3183, allocations: 1.845 MB / 430 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3183, allocations: 7.938 kB / 430 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/0.3189, allocations: 107.8 kB / 430.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/0.3213, allocations: 472.3 kB / 430.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.654e-05/0.3214, allocations: 12 kB / 430.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005129/0.3265, allocations: 3.156 MB / 433.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3265, allocations: 0 / 433.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003075/0.3296, allocations: 1.371 MB / 435.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003533/0.33, allocations: 208.2 kB / 435.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.3301, allocations: 16 kB / 435.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006515/0.3308, allocations: 43.91 kB / 435.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.3309, allocations: 52.42 kB / 435.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/0.331, allocations: 20 kB / 435.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005121/0.3315, allocations: 394.8 kB / 435.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3315, allocations: 0 / 435.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007736/0.3323, allocations: 188.1 kB / 436 MB, free: 5.359 MB / 350.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.0004057/0.3327, allocations: 151 kB / 436.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.3345, allocations: 0.7325 MB / 436.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3345, allocations: 0.625 kB / 436.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.3356, allocations: 0.5211 MB / 437.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007343/0.3363, allocations: 90 kB / 437.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.3392, allocations: 1.489 MB / 439 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.3398, allocations: 0.9043 MB / 439.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.34, allocations: 55.42 kB / 439.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.34, allocations: 0 / 439.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of Templates: time 0.01714/0.3572, allocations: 11.91 MB / 451.8 MB, free: 5.469 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches