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.001729/0.001729, allocations: 109.8 kB / 17.17 MB, free: 6.344 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.001853/0.001853, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.232/2.232, allocations: 222.9 MB / 241.7 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001843, allocations: 42.78 kB / 300.6 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1653, allocations: 49.46 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.009489/0.1748, allocations: 4.369 MB / 354.4 MB, free: 476 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004732/0.1796, allocations: 1.602 MB / 356 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009328/0.1806, allocations: 15.94 kB / 356.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007336/0.1813, allocations: 95.23 kB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001979/0.1834, allocations: 310.4 kB / 356.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.1845, allocations: 203.8 kB / 356.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.1866, allocations: 0.9197 MB / 357.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006247/0.1872, allocations: 210.2 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009866/0.1882, allocations: 330.6 kB / 358.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009674/0.1892, allocations: 398.2 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.1894, allocations: 52 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006847/0.1901, allocations: 163.9 kB / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.1904, allocations: 151.3 kB / 358.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005781/0.191, allocations: 370.1 kB / 359.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.1923, allocations: 0.9078 MB / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1924, allocations: 0 / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1924, allocations: 0 / 360.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.1924, allocations: 0 / 360.1 MB, free: 10.76 MB / 302.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.003966/0.1964, allocations: 1.099 MB / 361.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.1965, allocations: 12.03 kB / 361.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002762/0.1967, allocations: 76 kB / 361.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.198, allocations: 0.503 MB / 361.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.1981, allocations: 71.58 kB / 361.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00032/0.1985, allocations: 76.39 kB / 361.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.2003, allocations: 0.6058 MB / 362.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.2003, allocations: 0 / 362.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.853e-05/0.2004, allocations: 24 kB / 362.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/0.2004, allocations: 12 kB / 362.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.202, allocations: 0.5243 MB / 363.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.2062, allocations: 2.31 MB / 365.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.2076, allocations: 485.1 kB / 365.9 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005914/0.2082, allocations: 262.1 kB / 366.2 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.2083, allocations: 7.984 kB / 366.2 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.2083, allocations: 42.56 kB / 366.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.295e-06/0.2083, allocations: 0 / 366.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01456/0.2229, allocations: 3.536 MB / 369.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.223, allocations: 85.67 kB / 369.8 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008561/0.2239, allocations: 0.5332 MB / 370.4 MB, free: 140 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.704e-05/0.224, allocations: 37.7 kB / 370.4 MB, free: 96 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2473/0.4713, allocations: 309.5 kB / 370.7 MB, free: 25.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004848/0.4718, allocations: 209.1 kB / 370.9 MB, free: 25.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003923/0.4722, allocations: 114.5 kB / 371 MB, free: 25.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.4725, allocations: 368 kB / 371.4 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.4735, allocations: 245.8 kB / 371.6 MB, free: 25.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007869/0.4743, allocations: 351.2 kB / 372 MB, free: 25.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.4757, allocations: 0.6027 MB / 372.6 MB, free: 24.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.4757, allocations: 1.438 kB / 372.6 MB, free: 24.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002062/0.4778, allocations: 0.7422 MB / 373.3 MB, free: 24.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.4779, allocations: 6.344 kB / 373.3 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.4779, allocations: 2.156 kB / 373.3 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.4781, allocations: 35.88 kB / 373.3 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000984/0.4791, allocations: 169.6 kB / 373.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.4804, allocations: 1.329 MB / 374.8 MB, free: 23.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009033/0.4813, allocations: 38.38 kB / 374.9 MB, free: 23.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.721e-05/0.4814, allocations: 24.39 kB / 374.9 MB, free: 23.25 MB / 302.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.0004629/0.4819, allocations: 207 kB / 375.1 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.4821, allocations: 60.03 kB / 375.2 MB, free: 23.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/0.4843, allocations: 0.8369 MB / 376 MB, free: 22.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.4843, allocations: 11.77 kB / 376 MB, free: 22.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4844, allocations: 1.312 kB / 376 MB, free: 22.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.4844, allocations: 7.031 kB / 376 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004935/0.4893, allocations: 1.856 MB / 377.9 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.4894, allocations: 0 / 377.9 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005945/0.49, allocations: 105.8 kB / 378 MB, free: 21.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002792/0.4928, allocations: 476.3 kB / 378.4 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.772e-05/0.4929, allocations: 14.66 kB / 378.5 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005659/0.4985, allocations: 2.886 MB / 381.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.4986, allocations: 0.9375 kB / 381.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003551/0.5021, allocations: 1.374 MB / 382.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003971/0.5026, allocations: 203.3 kB / 382.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5027, allocations: 16.14 kB / 382.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006818/0.5034, allocations: 43.5 kB / 383 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.5036, allocations: 55.95 kB / 383 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.292e-05/0.5037, allocations: 19.03 kB / 383 MB, free: 18.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000645/0.5043, allocations: 388.2 kB / 383.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5043, allocations: 0 / 383.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009676/0.5053, allocations: 184.5 kB / 383.6 MB, free: 18.42 MB / 302.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.0003397/0.5057, allocations: 156.8 kB / 383.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.5075, allocations: 0.7309 MB / 384.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/0.5075, allocations: 1.188 kB / 384.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.5085, allocations: 0.5239 MB / 385 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009256/0.5095, allocations: 84.53 kB / 385.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003574/0.5131, allocations: 1.776 MB / 386.9 MB, free: 16.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.5136, allocations: 0.9047 MB / 387.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002919/0.5139, allocations: 57.84 kB / 387.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5139, allocations: 0 / 387.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of Templates: time 0.0209/0.5348, allocations: 11.74 MB / 399.6 MB, free: 8.629 MB / 302.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