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.001395/0.001395, allocations: 101.2 kB / 17.59 MB, free: 5.449 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.001658/0.001658, allocations: 187.6 kB / 18.51 MB, free: 4.527 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.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 55.19 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.09186, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005669/0.09755, allocations: 4.349 MB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.1004, allocations: 1.594 MB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005146/0.101, allocations: 11.94 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005869/0.1016, allocations: 126.8 kB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001657/0.1033, allocations: 357.9 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007436/0.1041, allocations: 227.7 kB / 357.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.1055, allocations: 0.9821 MB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004562/0.106, allocations: 241.3 kB / 358.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006276/0.1066, allocations: 370.7 kB / 359 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008334/0.1074, allocations: 430.3 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002594/0.1077, allocations: 99.94 kB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005475/0.1083, allocations: 211.9 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.1085, allocations: 199.3 kB / 359.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005575/0.1091, allocations: 422 kB / 360.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.1104, allocations: 1.145 MB / 361.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1104, allocations: 0 / 361.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1104, allocations: 3.938 kB / 361.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.202e-05/0.1105, allocations: 0 / 361.4 MB, free: 9.66 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.00278/0.1132, allocations: 1.099 MB / 362.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.1133, allocations: 8.031 kB / 362.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.1135, allocations: 88 kB / 362.6 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007786/0.1143, allocations: 0.4952 MB / 363.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.323e-05/0.1144, allocations: 83.5 kB / 363.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/0.1146, allocations: 68.41 kB / 363.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1157, allocations: 0.602 MB / 363.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.1158, allocations: 4 kB / 363.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.1158, allocations: 20 kB / 363.9 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.1159, allocations: 12 kB / 363.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.117, allocations: 0.5243 MB / 364.4 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.1205, allocations: 2.31 MB / 366.8 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009795/0.1215, allocations: 484.9 kB / 367.2 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005409/0.1221, allocations: 263.2 kB / 367.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.71e-05/0.1221, allocations: 16.22 kB / 367.5 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.1222, allocations: 42.5 kB / 367.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.1222, allocations: 3.938 kB / 367.5 MB, free: 3.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1724/0.2946, allocations: 3.532 MB / 371.1 MB, free: 25.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.2946, allocations: 85.33 kB / 371.2 MB, free: 25.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009384/0.2956, allocations: 0.5329 MB / 371.7 MB, free: 25.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.2957, allocations: 35.89 kB / 371.7 MB, free: 25.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.2959, allocations: 316.3 kB / 372 MB, free: 24.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.2961, allocations: 211.7 kB / 372.2 MB, free: 24.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.2964, allocations: 108.7 kB / 372.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2965, allocations: 366.1 kB / 372.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/0.2971, allocations: 244 kB / 372.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006427/0.2977, allocations: 350.1 kB / 373.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.2989, allocations: 0.6024 MB / 373.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2989, allocations: 1.156 kB / 373.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001595/0.3005, allocations: 0.7436 MB / 374.6 MB, free: 23.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3006, allocations: 9.375 kB / 374.6 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3006, allocations: 3.641 kB / 374.6 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.3008, allocations: 35.39 kB / 374.7 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008022/0.3016, allocations: 161.5 kB / 374.8 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008675/0.3025, allocations: 1.434 MB / 376.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/0.3031, allocations: 40.16 kB / 376.3 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.498e-05/0.3032, allocations: 27.73 kB / 376.3 MB, free: 22.27 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.000415/0.3036, allocations: 206.3 kB / 376.5 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002446/0.3039, allocations: 61.03 kB / 376.6 MB, free: 22.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00224/0.3061, allocations: 0.8448 MB / 377.4 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.3062, allocations: 6.875 kB / 377.5 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3062, allocations: 2.344 kB / 377.5 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.3062, allocations: 4.938 kB / 377.5 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003921/0.3101, allocations: 1.846 MB / 379.3 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.3101, allocations: 0 / 379.3 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005332/0.3107, allocations: 115.6 kB / 379.4 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00242/0.3131, allocations: 469.7 kB / 379.9 MB, free: 20.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.105e-05/0.3132, allocations: 13.92 kB / 379.9 MB, free: 20.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/0.3182, allocations: 3.165 MB / 383.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.3182, allocations: 6.125 kB / 383.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003013/0.3212, allocations: 1.367 MB / 384.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.3216, allocations: 206.2 kB / 384.6 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.3217, allocations: 12.75 kB / 384.6 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006669/0.3224, allocations: 42.92 kB / 384.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.3225, allocations: 52.05 kB / 384.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.3226, allocations: 19.17 kB / 384.8 MB, free: 17.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005172/0.3231, allocations: 388.2 kB / 385.1 MB, free: 17.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3231, allocations: 0 / 385.1 MB, free: 17.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008731/0.324, allocations: 186.7 kB / 385.3 MB, free: 17.2 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.0002753/0.3243, allocations: 155.5 kB / 385.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.3261, allocations: 0.7469 MB / 386.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3261, allocations: 4.062 kB / 386.2 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009179/0.3271, allocations: 0.5221 MB / 386.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000771/0.3278, allocations: 100.1 kB / 386.8 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.3309, allocations: 1.512 MB / 388.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.3314, allocations: 0.9034 MB / 389.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.3316, allocations: 57.88 kB / 389.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3316, allocations: 0 / 389.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Templates: time 0.01581/0.3475, allocations: 11.75 MB / 401.1 MB, free: 7.289 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