Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008361/0.000836, allocations: 95.08 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009828/0.0009829, allocations: 195.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.7 MB / 246.4 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000212/0.0002121, allocations: 8 kB / 307.1 MB, free: 1.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09085, allocations: 51.51 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00472/0.09562, allocations: 3.789 MB / 362.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.09851, allocations: 1.556 MB / 364 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004855/0.09902, allocations: 11.94 kB / 364 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003639/0.0994, allocations: 95.28 kB / 364.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008904/0.1003, allocations: 290.1 kB / 364.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.1008, allocations: 159.8 kB / 364.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.1019, allocations: 0.8652 MB / 365.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003392/0.1022, allocations: 178 kB / 365.6 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000518/0.1028, allocations: 306.8 kB / 365.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005576/0.1033, allocations: 366.4 kB / 366.2 MB, free: 6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.1035, allocations: 44 kB / 366.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003794/0.1039, allocations: 159.9 kB / 366.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.104, allocations: 131.4 kB / 366.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.1042, allocations: 161.3 kB / 366.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008118/0.105, allocations: 0.9039 MB / 367.6 MB, free: 4.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.105, allocations: 0 / 367.6 MB, free: 4.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.105, allocations: 0 / 367.6 MB, free: 4.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.105, allocations: 0 / 367.6 MB, free: 4.602 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.002041/0.1071, allocations: 0.9882 MB / 368.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.1071, allocations: 12.03 kB / 368.6 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.1074, allocations: 91.05 kB / 368.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006575/0.108, allocations: 0.4902 MB / 369.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.725e-05/0.1081, allocations: 82.97 kB / 369.3 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.1083, allocations: 67.97 kB / 369.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.1094, allocations: 0.6059 MB / 369.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1095, allocations: 11.78 kB / 370 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.522e-05/0.1095, allocations: 20 kB / 370 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1095, allocations: 16 kB / 370 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.1107, allocations: 0.5322 MB / 370.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.161/0.2717, allocations: 2.306 MB / 372.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.2728, allocations: 493.6 kB / 373.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006119/0.2735, allocations: 271.8 kB / 373.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.2735, allocations: 7.688 kB / 373.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.2735, allocations: 38.11 kB / 373.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.524e-06/0.2736, allocations: 3.156 kB / 373.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01249/0.286, allocations: 3.689 MB / 377.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.2861, allocations: 92.17 kB / 377.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00068/0.2868, allocations: 0.525 MB / 377.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.775e-05/0.2868, allocations: 36.48 kB / 378 MB, free: 16.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.287, allocations: 318.4 kB / 378.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.2872, allocations: 214.1 kB / 378.5 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.2872, allocations: 15.09 kB / 378.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.2873, allocations: 364.7 kB / 378.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005574/0.2879, allocations: 258.1 kB / 379.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.2884, allocations: 352.6 kB / 379.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005808/0.289, allocations: 296.8 kB / 379.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.289, allocations: 1.875 kB / 379.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00145/0.2905, allocations: 0.7544 MB / 380.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.2905, allocations: 5.344 kB / 380.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2905, allocations: 4.453 kB / 380.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.2907, allocations: 33.05 kB / 380.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007857/0.2915, allocations: 170.7 kB / 380.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00076/0.2923, allocations: 1.329 MB / 382 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005505/0.2928, allocations: 45.81 kB / 382.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.2929, allocations: 24.55 kB / 382.1 MB, free: 13.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002578/0.2932, allocations: 202.9 kB / 382.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.2933, allocations: 61.53 kB / 382.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.2951, allocations: 0.8676 MB / 383.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.2951, allocations: 9.422 kB / 383.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2951, allocations: 1.125 kB / 383.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.629e-06/0.2951, allocations: 3.562 kB / 383.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.2987, allocations: 1.885 MB / 385.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.2987, allocations: 0.5625 kB / 385.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005212/0.2992, allocations: 116.3 kB / 385.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.3015, allocations: 0.4956 MB / 385.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.3016, allocations: 14 kB / 385.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004305/0.3059, allocations: 2.957 MB / 388.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3059, allocations: 2.5 kB / 388.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/0.3087, allocations: 1.409 MB / 390.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.309, allocations: 210.8 kB / 390.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3091, allocations: 12.16 kB / 390.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005965/0.3097, allocations: 46.56 kB / 390.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.3099, allocations: 53.45 kB / 390.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.3099, allocations: 18.45 kB / 390.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005121/0.3104, allocations: 392.7 kB / 390.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3104, allocations: 0 / 390.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008044/0.3113, allocations: 182.9 kB / 391 MB, free: 8.848 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002628/0.3115, allocations: 150.5 kB / 391.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.3129, allocations: 0.7464 MB / 391.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3129, allocations: 0 / 391.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008284/0.3138, allocations: 0.5281 MB / 392.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006697/0.3145, allocations: 98.69 kB / 392.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.317, allocations: 1.84 MB / 394.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3173, allocations: 0.9021 MB / 395.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003639/0.3177, allocations: 72.64 kB / 395.3 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.3179, allocations: 46.23 kB / 395.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3179, allocations: 0 / 395.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of Templates: time 0.01322/0.3311, allocations: 9.323 MB / 404.7 MB, free: 15 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches