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.001086/0.001086, allocations: 103 kB / 17.74 MB, free: 5.324 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.001175/0.001175, allocations: 192.3 kB / 18.67 MB, free: 4.395 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.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 47.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2508, allocations: 49.44 MB / 401.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005276/0.2561, allocations: 4.368 MB / 405.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.2587, allocations: 1.586 MB / 407.4 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003687/0.2591, allocations: 12 kB / 407.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.2595, allocations: 130.8 kB / 407.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008412/0.2604, allocations: 355 kB / 407.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004654/0.2609, allocations: 227.7 kB / 408.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000953/0.2618, allocations: 0.9861 MB / 409 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003525/0.2622, allocations: 233.4 kB / 409.3 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004299/0.2626, allocations: 378.7 kB / 409.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005107/0.2632, allocations: 434.2 kB / 410.1 MB, free: 216 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.2633, allocations: 96 kB / 410.2 MB, free: 120 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.2637, allocations: 219.9 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.2639, allocations: 195.3 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.2642, allocations: 414.1 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.2653, allocations: 1.164 MB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2653, allocations: 0 / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2654, allocations: 4 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.2654, allocations: 0 / 412.1 MB, free: 14.14 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.002283/0.2677, allocations: 1.091 MB / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2677, allocations: 8.031 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.2679, allocations: 80 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000743/0.2686, allocations: 0.5106 MB / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.992e-05/0.2687, allocations: 71.56 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.2689, allocations: 72.5 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.27, allocations: 0.6019 MB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.27, allocations: 4 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.2701, allocations: 20 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.2701, allocations: 12 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2712, allocations: 0.5321 MB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003315/0.2745, allocations: 2.298 MB / 417.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.2756, allocations: 482.4 kB / 417.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005643/0.2762, allocations: 262.8 kB / 418.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.2762, allocations: 4 kB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.2763, allocations: 38.56 kB / 418.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.934e-06/0.2763, allocations: 4 kB / 418.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01314/0.2894, allocations: 3.542 MB / 421.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.2895, allocations: 89.67 kB / 421.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007154/0.2903, allocations: 0.5331 MB / 422.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-05/0.2903, allocations: 37.7 kB / 422.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.2905, allocations: 324.2 kB / 422.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.2907, allocations: 208.9 kB / 422.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.2909, allocations: 114.2 kB / 423 MB, free: 2.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2911, allocations: 362.8 kB / 423.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005538/0.2917, allocations: 253.1 kB / 423.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/0.2923, allocations: 352.4 kB / 424 MB, free: 1.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.2935, allocations: 0.5981 MB / 424.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2935, allocations: 0 / 424.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001545/0.2951, allocations: 0.7452 MB / 425.3 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.2951, allocations: 8 kB / 425.3 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.2951, allocations: 3.984 kB / 425.3 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.2953, allocations: 32.78 kB / 425.4 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007987/0.2961, allocations: 171.7 kB / 425.5 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.2973, allocations: 1.422 MB / 427 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006354/0.2979, allocations: 47.97 kB / 427 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.943e-05/0.298, allocations: 23.98 kB / 427 MB, free: 14.61 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.000323/0.2983, allocations: 197.7 kB / 427.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.2985, allocations: 59.25 kB / 427.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.3003, allocations: 0.8336 MB / 428.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.3003, allocations: 15.92 kB / 428.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3003, allocations: 0 / 428.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3004, allocations: 7.938 kB / 428.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003714/0.3041, allocations: 1.849 MB / 430 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3041, allocations: 3.938 kB / 430 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005447/0.3047, allocations: 111.9 kB / 430.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.307, allocations: 464.4 kB / 430.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.438e-05/0.3071, allocations: 23.98 kB / 430.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005053/0.3121, allocations: 3.146 MB / 433.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3122, allocations: 4.031 kB / 433.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003122/0.3153, allocations: 1.363 MB / 435.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003597/0.3157, allocations: 212.2 kB / 435.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.3158, allocations: 12 kB / 435.3 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/0.3165, allocations: 51.89 kB / 435.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.3166, allocations: 48.58 kB / 435.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.3167, allocations: 19.98 kB / 435.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005153/0.3172, allocations: 386.9 kB / 435.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3172, allocations: 0 / 435.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007603/0.318, allocations: 192.1 kB / 436 MB, free: 5.383 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.0003261/0.3183, allocations: 159.1 kB / 436.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.32, allocations: 0.7287 MB / 436.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.32, allocations: 0 / 436.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.321, allocations: 0.5178 MB / 437.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007336/0.3218, allocations: 93.86 kB / 437.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.3247, allocations: 1.512 MB / 439 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.3252, allocations: 0.8965 MB / 439.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.3255, allocations: 55.41 kB / 440 MB, free: 1.332 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3255, allocations: 0 / 440 MB, free: 1.332 MB / 350.1 MB Notification: Performance of Templates: time 0.01642/0.3419, allocations: 11.81 MB / 451.8 MB, free: 5.57 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