Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001585/0.001585, allocations: 117.4 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 208.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.389/1.389, allocations: 227.6 MB / 247.8 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 67.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2294, allocations: 50.54 MB / 410.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005905/0.2353, allocations: 4.389 MB / 414.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002816/0.2382, allocations: 1.652 MB / 416.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.2384, allocations: 11.94 kB / 416.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.2387, allocations: 118.9 kB / 416.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008003/0.2395, allocations: 369.6 kB / 416.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000452/0.24, allocations: 239.6 kB / 417 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.241, allocations: 0.9784 MB / 417.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000325/0.2413, allocations: 169.4 kB / 418.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004692/0.2418, allocations: 382.7 kB / 418.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006375/0.2424, allocations: 422.3 kB / 418.9 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.2426, allocations: 96 kB / 419 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.2429, allocations: 223.9 kB / 419.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.2431, allocations: 191.4 kB / 419.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003852/0.2435, allocations: 422.1 kB / 419.8 MB, free: 7.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.2448, allocations: 1.179 MB / 421 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2448, allocations: 0 / 421 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2448, allocations: 4 kB / 421 MB, free: 6.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.2448, allocations: 0 / 421 MB, free: 6.605 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.002533/0.2473, allocations: 1.114 MB / 422.1 MB, free: 5.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2474, allocations: 12.03 kB / 422.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.2476, allocations: 88.45 kB / 422.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008658/0.2485, allocations: 0.5265 MB / 422.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.2486, allocations: 79.56 kB / 422.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/0.2488, allocations: 60.5 kB / 422.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.25, allocations: 0.6059 MB / 423.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.25, allocations: 4 kB / 423.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/0.25, allocations: 24 kB / 423.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.2501, allocations: 16 kB / 423.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.2512, allocations: 0.5243 MB / 424 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.2547, allocations: 2.291 MB / 426.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.2557, allocations: 465.2 kB / 426.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005298/0.2562, allocations: 246.1 kB / 427 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2563, allocations: 12 kB / 427 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.2563, allocations: 42.5 kB / 427.1 MB, free: 260 kB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.543e-06/0.2563, allocations: 0 / 427.1 MB, free: 260 kB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01304/0.2693, allocations: 3.565 MB / 430.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.2694, allocations: 85.61 kB / 430.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000717/0.2701, allocations: 0.5371 MB / 431.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.389e-05/0.2702, allocations: 37.7 kB / 431.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.2704, allocations: 316.9 kB / 431.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.2706, allocations: 218.1 kB / 431.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.2708, allocations: 118.3 kB / 431.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.271, allocations: 362.8 kB / 432.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.2716, allocations: 249.2 kB / 432.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/0.2722, allocations: 344.4 kB / 432.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.2735, allocations: 0.6058 MB / 433.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2735, allocations: 0 / 433.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001577/0.2751, allocations: 0.7493 MB / 434.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2751, allocations: 8 kB / 434.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.2751, allocations: 4 kB / 434.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/0.2752, allocations: 28.84 kB / 434.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008048/0.276, allocations: 163.8 kB / 434.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.2773, allocations: 1.434 MB / 435.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/0.2778, allocations: 43.91 kB / 435.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.2779, allocations: 27.98 kB / 435.9 MB, free: 7.031 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.000279/0.2781, allocations: 207.2 kB / 436.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.2783, allocations: 63.58 kB / 436.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001905/0.2802, allocations: 0.8297 MB / 437 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.2802, allocations: 11.94 kB / 437 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.2802, allocations: 0 / 437 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.2802, allocations: 7.984 kB / 437 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003831/0.284, allocations: 1.838 MB / 438.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.284, allocations: 0 / 438.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005264/0.2846, allocations: 107.8 kB / 439 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.2869, allocations: 479 kB / 439.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.519e-05/0.287, allocations: 15.98 kB / 439.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005252/0.2922, allocations: 3.163 MB / 442.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2922, allocations: 0 / 442.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.2953, allocations: 1.363 MB / 444 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.2956, allocations: 216.8 kB / 444.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.563e-05/0.2956, allocations: 12 kB / 444.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/0.2962, allocations: 39.97 kB / 444.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.2964, allocations: 48.5 kB / 444.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/0.2964, allocations: 19.98 kB / 444.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004856/0.2969, allocations: 390.9 kB / 444.7 MB, free: 14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2969, allocations: 0 / 444.7 MB, free: 14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006988/0.2976, allocations: 195.9 kB / 444.9 MB, free: 13.8 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.0002892/0.2979, allocations: 147 kB / 445 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.2994, allocations: 0.7051 MB / 445.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2994, allocations: 0 / 445.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009315/0.3003, allocations: 0.51 MB / 446.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006352/0.3009, allocations: 89.95 kB / 446.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.3038, allocations: 1.485 MB / 447.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.3043, allocations: 0.9004 MB / 448.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000308/0.3046, allocations: 72.8 kB / 448.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.3048, allocations: 43.42 kB / 448.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3048, allocations: 4 kB / 448.8 MB, free: 9.762 MB / 366.1 MB Notification: Performance of Templates: time 0.01864/0.3235, allocations: 10.48 MB / 459.3 MB, free: 15.38 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches