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.001063/0.001063, allocations: 114 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.42 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09706, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00599/0.1031, allocations: 4.386 MB / 361.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002705/0.1058, allocations: 1.648 MB / 363 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003498/0.1062, allocations: 8 kB / 363 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003974/0.1067, allocations: 95.23 kB / 363.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008308/0.1075, allocations: 318.5 kB / 363.4 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.108, allocations: 211.8 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008495/0.1089, allocations: 0.9746 MB / 364.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.1092, allocations: 241.3 kB / 364.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004364/0.1097, allocations: 378.6 kB / 365.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.1101, allocations: 426.3 kB / 365.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.1102, allocations: 96 kB / 365.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003542/0.1106, allocations: 219.9 kB / 365.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.1108, allocations: 195.3 kB / 366.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.1111, allocations: 418.1 kB / 366.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.1121, allocations: 1.156 MB / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1122, allocations: 0 / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1122, allocations: 0 / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1122, allocations: 0 / 367.7 MB, free: 3.637 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.002272/0.1145, allocations: 1.103 MB / 368.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.1145, allocations: 8.031 kB / 368.8 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/0.1148, allocations: 91.98 kB / 368.9 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006942/0.1155, allocations: 0.5068 MB / 369.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.1156, allocations: 71.56 kB / 369.5 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/0.1158, allocations: 76.47 kB / 369.5 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.1169, allocations: 0.6019 MB / 370.2 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.117, allocations: 3.938 kB / 370.2 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.887e-05/0.117, allocations: 27.98 kB / 370.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.117, allocations: 12 kB / 370.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1181, allocations: 0.5243 MB / 370.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1867/0.3048, allocations: 2.311 MB / 373 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.3068, allocations: 476.9 kB / 373.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000982/0.3078, allocations: 259.7 kB / 373.7 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.108e-05/0.3079, allocations: 11.25 kB / 373.8 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.3079, allocations: 39.77 kB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 4.628e-06/0.3079, allocations: 0 / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.02278/0.3307, allocations: 3.539 MB / 377.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.3308, allocations: 87.98 kB / 377.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.3319, allocations: 0.5381 MB / 378 MB, free: 17.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.391e-05/0.3321, allocations: 37.09 kB / 378 MB, free: 17.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.3323, allocations: 313.9 kB / 378.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.3325, allocations: 212.9 kB / 378.5 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/0.3329, allocations: 111 kB / 378.6 MB, free: 16.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.333, allocations: 369.3 kB / 379 MB, free: 16.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009981/0.334, allocations: 247.7 kB / 379.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.3351, allocations: 345.2 kB / 379.6 MB, free: 16.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002011/0.3371, allocations: 0.6024 MB / 380.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3372, allocations: 1.219 kB / 380.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002761/0.3399, allocations: 0.7477 MB / 380.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.34, allocations: 6.594 kB / 380.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.34, allocations: 2.438 kB / 380.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.3403, allocations: 34.47 kB / 381 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.3418, allocations: 163.3 kB / 381.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.3431, allocations: 1.438 MB / 382.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.3442, allocations: 38.61 kB / 382.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-05/0.3443, allocations: 28.27 kB / 382.6 MB, free: 13.91 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.0004365/0.3448, allocations: 203.1 kB / 382.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002297/0.345, allocations: 57 kB / 382.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003141/0.3482, allocations: 0.8493 MB / 383.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3482, allocations: 6.781 kB / 383.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3482, allocations: 1.797 kB / 383.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.3482, allocations: 4.297 kB / 383.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005011/0.3533, allocations: 1.855 MB / 385.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3533, allocations: 3.938 kB / 385.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.3538, allocations: 114.6 kB / 385.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002385/0.3562, allocations: 467.4 kB / 386.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.3563, allocations: 18.5 kB / 386.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005306/0.3616, allocations: 3.157 MB / 389.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.3616, allocations: 1.125 kB / 389.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002951/0.3646, allocations: 1.367 MB / 390.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002542/0.3648, allocations: 211.4 kB / 390.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.336e-05/0.3649, allocations: 11.38 kB / 390.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006265/0.3656, allocations: 45.27 kB / 391 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3657, allocations: 54.14 kB / 391 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/0.3658, allocations: 23.44 kB / 391 MB, free: 9.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000425/0.3662, allocations: 392.2 kB / 391.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3662, allocations: 0 / 391.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007647/0.367, allocations: 188.6 kB / 391.6 MB, free: 8.82 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.0002585/0.3673, allocations: 149.8 kB / 391.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.3689, allocations: 0.7502 MB / 392.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3689, allocations: 1.375 kB / 392.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008194/0.3697, allocations: 0.524 MB / 393 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007217/0.3704, allocations: 97.61 kB / 393.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.3729, allocations: 1.758 MB / 394.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.3732, allocations: 0.9047 MB / 395.8 MB, free: 6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003432/0.3735, allocations: 73.11 kB / 395.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.3737, allocations: 49.38 kB / 395.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3737, allocations: 1.5 kB / 395.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of Templates: time 0.01382/0.3875, allocations: 10.11 MB / 406 MB, free: 13.68 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