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.00076/0.00076, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009761/0.0009763, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.000256, allocations: 4 kB / 308.4 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09991/0.1002, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004142/0.1044, allocations: 3.989 MB / 363.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002705/0.1071, allocations: 1.645 MB / 365.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002822/0.1074, allocations: 11.94 kB / 365.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.1077, allocations: 95.28 kB / 365.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006874/0.1084, allocations: 306.5 kB / 366 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.1088, allocations: 211.8 kB / 366.2 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007711/0.1096, allocations: 0.9121 MB / 367.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002965/0.1099, allocations: 214.1 kB / 367.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.1103, allocations: 314.7 kB / 367.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004055/0.1107, allocations: 370.3 kB / 368 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.466e-05/0.1108, allocations: 44 kB / 368 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003181/0.1112, allocations: 171.9 kB / 368.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1113, allocations: 143.3 kB / 368.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.1116, allocations: 383.8 kB / 368.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007386/0.1123, allocations: 0.8918 MB / 369.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1123, allocations: 3.938 kB / 369.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1123, allocations: 0 / 369.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.098e-06/0.1124, allocations: 0 / 369.6 MB, free: 3.535 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.002027/0.1144, allocations: 0.9858 MB / 370.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.1144, allocations: 8.031 kB / 370.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.1147, allocations: 91.98 kB / 370.7 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.1153, allocations: 0.5068 MB / 371.2 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.098e-05/0.1154, allocations: 71.58 kB / 371.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001832/0.1156, allocations: 76.39 kB / 371.3 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.1167, allocations: 0.6097 MB / 371.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1167, allocations: 0 / 371.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.629e-05/0.1168, allocations: 24 kB / 371.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1168, allocations: 12 kB / 372 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1179, allocations: 0.5399 MB / 372.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2033/0.3212, allocations: 2.316 MB / 374.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.3225, allocations: 491.2 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006433/0.3232, allocations: 276.6 kB / 375.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.3233, allocations: 9.734 kB / 375.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.3233, allocations: 43.66 kB / 375.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.516e-06/0.3233, allocations: 0 / 375.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01429/0.3376, allocations: 3.701 MB / 379.3 MB, free: 16.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.3377, allocations: 84.27 kB / 379.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.3388, allocations: 0.5346 MB / 379.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.617e-05/0.3388, allocations: 36.14 kB / 380 MB, free: 16.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.3391, allocations: 320 kB / 380.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.3393, allocations: 208 kB / 380.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3394, allocations: 54.95 kB / 380.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3395, allocations: 369.9 kB / 380.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000622/0.3402, allocations: 255.8 kB / 381.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007584/0.3409, allocations: 363.8 kB / 381.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.3422, allocations: 0.6209 MB / 382.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3422, allocations: 1.031 kB / 382.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001753/0.344, allocations: 0.7582 MB / 382.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.344, allocations: 5.75 kB / 382.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.344, allocations: 3.516 kB / 382.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002036/0.3443, allocations: 32.2 kB / 382.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008708/0.3451, allocations: 171.3 kB / 383.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009854/0.3461, allocations: 1.344 MB / 384.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006876/0.3468, allocations: 40.59 kB / 384.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-05/0.3469, allocations: 31.2 kB / 384.5 MB, free: 13.22 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.0003512/0.3473, allocations: 207 kB / 384.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3475, allocations: 67.94 kB / 384.8 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.3495, allocations: 0.8609 MB / 385.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.3495, allocations: 6.188 kB / 385.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3495, allocations: 1.719 kB / 385.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.3495, allocations: 9.797 kB / 385.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00426/0.3538, allocations: 1.893 MB / 387.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.3538, allocations: 0 / 387.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005348/0.3544, allocations: 110.9 kB / 387.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/0.357, allocations: 0.4991 MB / 388.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.45e-05/0.3571, allocations: 18.58 kB / 388.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004907/0.362, allocations: 2.951 MB / 391.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.362, allocations: 4.938 kB / 391.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00355/0.3656, allocations: 1.418 MB / 392.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00045/0.3661, allocations: 206.9 kB / 392.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.3662, allocations: 21.02 kB / 392.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007253/0.367, allocations: 44.33 kB / 392.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.3672, allocations: 50.94 kB / 392.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.3672, allocations: 24.16 kB / 392.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000629/0.3679, allocations: 388.1 kB / 393.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3679, allocations: 0 / 393.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009887/0.3689, allocations: 185.5 kB / 393.4 MB, free: 8.328 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.0003117/0.3692, allocations: 152.5 kB / 393.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.3708, allocations: 0.7525 MB / 394.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3708, allocations: 0 / 394.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.3719, allocations: 0.5323 MB / 394.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008721/0.3728, allocations: 92.95 kB / 395 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.376, allocations: 1.901 MB / 396.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.3763, allocations: 0.9043 MB / 397.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.3766, allocations: 52.81 kB / 397.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3766, allocations: 1.094 kB / 397.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01782/0.3944, allocations: 11.71 MB / 409.5 MB, free: 10.96 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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches