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.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001707/0.001707, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002006, allocations: 205.9 kB / 18.78 MB, free: 4.254 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.429/1.429, allocations: 230.4 MB / 250 MB, free: 9.105 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.001904/0.001904, allocations: 71.83 kB / 367.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.24, allocations: 53.31 MB / 420.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004881/0.2449, allocations: 3.458 MB / 424.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.2476, allocations: 1.66 MB / 425.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001782/0.2477, allocations: 7.938 kB / 425.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.2507, allocations: 2.667 MB / 428.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005246/0.2513, allocations: 214.5 kB / 428.7 MB, free: 324 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.252, allocations: 329.9 kB / 429 MB, free: 0 / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001807/0.2538, allocations: 1.817 MB / 430.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.254, allocations: 104 kB / 430.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004/0.2544, allocations: 317 kB / 431.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.2548, allocations: 354.7 kB / 431.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.29e-05/0.2549, allocations: 44 kB / 431.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.2551, allocations: 91.98 kB / 431.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006457/0.2557, allocations: 0.8491 MB / 432.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007404/0.2564, allocations: 0.9423 MB / 433.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002474/0.2589, allocations: 2.641 MB / 436.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2589, allocations: 4 kB / 436.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2589, allocations: 0 / 436.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.2589, allocations: 0 / 436.1 MB, free: 8.824 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00394/0.2629, allocations: 2.919 MB / 439 MB, free: 5.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2629, allocations: 12.03 kB / 439.1 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004575/0.2634, allocations: 306.9 kB / 439.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.2659, allocations: 1.866 MB / 441.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.266, allocations: 59.27 kB / 441.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.2662, allocations: 51.92 kB / 441.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007465/0.2669, allocations: 398.9 kB / 441.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.2669, allocations: 0 / 441.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.833e-05/0.267, allocations: 19.94 kB / 441.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.267, allocations: 8 kB / 441.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007352/0.2677, allocations: 331.7 kB / 442.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004035/0.2717, allocations: 2.892 MB / 445 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006504/0.2724, allocations: 312.9 kB / 445.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003239/0.2727, allocations: 157.6 kB / 445.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.2728, allocations: 7.984 kB / 445.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.2728, allocations: 39.09 kB / 445.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.2728, allocations: 4 kB / 445.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.00497/0.2778, allocations: 2.471 MB / 447.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.2778, allocations: 85.58 kB / 448 MB, free: 12.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00702/0.2848, allocations: 5.455 MB / 453.5 MB, free: 7.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.2849, allocations: 37.7 kB / 453.5 MB, free: 7.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.2861, allocations: 1.184 MB / 454.7 MB, free: 5.883 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.2863, allocations: 174.5 kB / 454.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.2865, allocations: 86.2 kB / 455 MB, free: 5.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.2867, allocations: 330 kB / 455.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.2871, allocations: 137.1 kB / 455.4 MB, free: 5.156 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.2874, allocations: 217.7 kB / 455.6 MB, free: 4.918 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.2882, allocations: 388.3 kB / 456 MB, free: 4.512 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2882, allocations: 7.938 kB / 456 MB, free: 4.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001367/0.2896, allocations: 0.6933 MB / 456.7 MB, free: 3.801 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.2896, allocations: 10.48 kB / 456.7 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2896, allocations: 4 kB / 456.7 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.2896, allocations: 4.25 kB / 456.7 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005275/0.2902, allocations: 123.8 kB / 456.8 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.2902, allocations: 4 kB / 456.9 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.2906, allocations: 23.92 kB / 456.9 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.2907, allocations: 23.98 kB / 456.9 MB, free: 3.613 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001164/0.2918, allocations: 0.923 MB / 457.8 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003459/0.2922, allocations: 290.1 kB / 458.1 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.2937, allocations: 0.7903 MB / 458.9 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.2937, allocations: 8 kB / 458.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2937, allocations: 0 / 458.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2938, allocations: 3.984 kB / 458.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.2956, allocations: 1.481 MB / 460.4 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.2956, allocations: 3.938 kB / 460.4 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.296, allocations: 99.88 kB / 460.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003756/0.2964, allocations: 92.77 kB / 460.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.2964, allocations: 12 kB / 460.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006623/0.2971, allocations: 0.6383 MB / 461.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2971, allocations: 0 / 461.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.299, allocations: 1.094 MB / 462.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000758/0.2997, allocations: 0.4991 MB / 462.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/0.2999, allocations: 12 kB / 462.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004656/0.3004, allocations: 15.98 kB / 462.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.3005, allocations: 32.39 kB / 462.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.3005, allocations: 12 kB / 462.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00532/0.3058, allocations: 3.986 MB / 466.9 MB, free: 9.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3058, allocations: 4 kB / 466.9 MB, free: 9.488 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007746/0.3066, allocations: 208 kB / 467.1 MB, free: 9.285 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001555/0.3082, allocations: 412.8 kB / 467.5 MB, free: 9.027 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009093/0.3091, allocations: 365 kB / 467.8 MB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3091, allocations: 0 / 467.8 MB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004857/0.3096, allocations: 198.4 kB / 468 MB, free: 8.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3107, allocations: 197.5 kB / 468.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008097/0.3188, allocations: 5.501 MB / 473.7 MB, free: 2.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.3205, allocations: 1.821 MB / 475.6 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006274/0.3212, allocations: 271.8 kB / 475.8 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.3214, allocations: 95.36 kB / 475.9 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3214, allocations: 4 kB / 475.9 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of Templates: time 0.03345/0.3549, allocations: 15.7 MB / 491.6 MB, free: 0.8789 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches