Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001614/0.001614, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001589/0.001589, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 227.7 MB / 247.7 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.31 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.1006, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006043/0.1067, allocations: 4.366 MB / 362.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002913/0.1096, allocations: 1.648 MB / 364.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.1099, allocations: 11.94 kB / 364.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003735/0.1103, allocations: 134.8 kB / 364.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007961/0.1111, allocations: 353.9 kB / 364.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.1116, allocations: 243.6 kB / 365.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009594/0.1126, allocations: 0.9706 MB / 366.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.113, allocations: 245.3 kB / 366.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.1135, allocations: 378.7 kB / 366.8 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005129/0.114, allocations: 422.3 kB / 367.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.1141, allocations: 100 kB / 367.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003991/0.1145, allocations: 219.9 kB / 367.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1147, allocations: 199.3 kB / 367.7 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004043/0.1151, allocations: 418.1 kB / 368.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.1163, allocations: 1.152 MB / 369.2 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1163, allocations: 4 kB / 369.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1163, allocations: 0 / 369.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1163, allocations: 0 / 369.2 MB, free: 3.09 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.002404/0.1187, allocations: 1.099 MB / 370.3 MB, free: 1.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1188, allocations: 12.03 kB / 370.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.1191, allocations: 84 kB / 370.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007236/0.1198, allocations: 0.5068 MB / 370.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-05/0.1199, allocations: 75.56 kB / 371 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.1201, allocations: 68.44 kB / 371.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.1212, allocations: 0.6136 MB / 371.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.1212, allocations: 0 / 371.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.539e-05/0.1213, allocations: 20 kB / 371.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.1213, allocations: 16 kB / 371.7 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1746/0.296, allocations: 0.5213 MB / 372.3 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005361/0.3014, allocations: 2.317 MB / 374.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.303, allocations: 480.4 kB / 375 MB, free: 18.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008559/0.3039, allocations: 264.2 kB / 375.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.015e-05/0.3039, allocations: 8.406 kB / 375.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.3039, allocations: 39.28 kB / 375.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.396e-06/0.304, allocations: 0 / 375.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.02005/0.324, allocations: 3.546 MB / 378.9 MB, free: 17.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.3241, allocations: 84.92 kB / 379 MB, free: 17.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.3252, allocations: 0.5421 MB / 379.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.935e-05/0.3253, allocations: 40.94 kB / 379.6 MB, free: 16.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.3255, allocations: 309.7 kB / 379.9 MB, free: 16.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.3257, allocations: 207.7 kB / 380.1 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002992/0.3261, allocations: 111.6 kB / 380.2 MB, free: 16.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3262, allocations: 370.2 kB / 380.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009004/0.3271, allocations: 250 kB / 380.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009328/0.3281, allocations: 352.6 kB / 381.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001791/0.3299, allocations: 0.6008 MB / 381.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3299, allocations: 0 / 381.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002433/0.3323, allocations: 0.7375 MB / 382.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.3324, allocations: 8.438 kB / 382.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.3324, allocations: 4 kB / 382.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/0.3326, allocations: 35.02 kB / 382.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.3339, allocations: 165.3 kB / 382.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.3351, allocations: 1.434 MB / 384.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.3361, allocations: 42.28 kB / 384.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.67e-05/0.3362, allocations: 24.62 kB / 384.2 MB, free: 13.52 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.0004554/0.3367, allocations: 215 kB / 384.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.3369, allocations: 60.12 kB / 384.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.3397, allocations: 0.8347 MB / 385.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.3398, allocations: 6.938 kB / 385.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3398, allocations: 0.5625 kB / 385.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.3398, allocations: 8.328 kB / 385.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005671/0.3455, allocations: 1.862 MB / 387.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.3455, allocations: 0.7031 kB / 387.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008286/0.3464, allocations: 110.5 kB / 387.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003574/0.35, allocations: 469.8 kB / 387.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-05/0.3501, allocations: 14.58 kB / 387.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007251/0.3574, allocations: 3.151 MB / 390.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3574, allocations: 0 / 390.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004513/0.3619, allocations: 1.374 MB / 392.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.3624, allocations: 207.2 kB / 392.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.3626, allocations: 17.08 kB / 392.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009756/0.3636, allocations: 42.77 kB / 392.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.3638, allocations: 55.55 kB / 392.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.655e-05/0.3639, allocations: 16.53 kB / 392.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006828/0.3645, allocations: 388.9 kB / 393 MB, free: 8.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3646, allocations: 0 / 393 MB, free: 8.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001286/0.3659, allocations: 191.9 kB / 393.2 MB, free: 8.371 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.0003376/0.3662, allocations: 147.1 kB / 393.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002578/0.3688, allocations: 0.7556 MB / 394 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3688, allocations: 0 / 394 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.3701, allocations: 0.5235 MB / 394.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.3713, allocations: 100 kB / 394.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003751/0.3751, allocations: 1.513 MB / 396.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000419/0.3756, allocations: 0.9033 MB / 397.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.3759, allocations: 58.69 kB / 397.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3759, allocations: 0 / 397.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of Templates: time 0.02192/0.3979, allocations: 11.78 MB / 408.9 MB, free: 11.64 MB / 318.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches