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.001131/0.001131, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 55.55 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08745, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005183/0.09266, allocations: 4.375 MB / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.09507, allocations: 1.652 MB / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002406/0.09532, allocations: 11.94 kB / 364.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.09568, allocations: 126.8 kB / 365.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007077/0.0964, allocations: 357.6 kB / 365.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.09681, allocations: 251.6 kB / 365.7 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008089/0.09763, allocations: 0.9816 MB / 366.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.09797, allocations: 241.3 kB / 366.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004359/0.09841, allocations: 374.7 kB / 367.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000471/0.09889, allocations: 434.2 kB / 367.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.09901, allocations: 96 kB / 367.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003331/0.09935, allocations: 223.9 kB / 368 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.09951, allocations: 191.4 kB / 368.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003746/0.09989, allocations: 422 kB / 368.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.1009, allocations: 1.172 MB / 369.8 MB, free: 2.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1009, allocations: 0 / 369.8 MB, free: 2.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1009, allocations: 0 / 369.8 MB, free: 2.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.101, allocations: 0 / 369.8 MB, free: 2.43 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.002321/0.1033, allocations: 1.099 MB / 370.9 MB, free: 1.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1033, allocations: 16.03 kB / 370.9 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/0.1036, allocations: 84 kB / 371 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.1044, allocations: 0.5223 MB / 371.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.53e-05/0.1045, allocations: 71.58 kB / 371.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.1047, allocations: 64.48 kB / 371.6 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1488/0.2535, allocations: 0.6026 MB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.825e-05/0.2536, allocations: 3.281 kB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8e-05/0.2537, allocations: 25.34 kB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.2537, allocations: 12.84 kB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.2551, allocations: 0.5287 MB / 372.8 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.259, allocations: 2.288 MB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009848/0.26, allocations: 481.2 kB / 375.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005481/0.2605, allocations: 263.6 kB / 375.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.2606, allocations: 4.438 kB / 375.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.2606, allocations: 49.36 kB / 375.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.124e-06/0.2606, allocations: 0 / 375.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01239/0.273, allocations: 3.539 MB / 379.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.2731, allocations: 89.59 kB / 379.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007609/0.2739, allocations: 0.5412 MB / 380 MB, free: 16.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.2739, allocations: 36.02 kB / 380 MB, free: 16.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.2741, allocations: 318.4 kB / 380.4 MB, free: 16.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.2743, allocations: 207.2 kB / 380.6 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.2745, allocations: 114.3 kB / 380.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2747, allocations: 363.7 kB / 381 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006009/0.2753, allocations: 247 kB / 381.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006918/0.276, allocations: 346.1 kB / 381.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.2772, allocations: 0.6074 MB / 382.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.2772, allocations: 0 / 382.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001508/0.2787, allocations: 0.7404 MB / 383 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2787, allocations: 9.156 kB / 383 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.2787, allocations: 3.172 kB / 383 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.2789, allocations: 33.94 kB / 383 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008017/0.2797, allocations: 166.9 kB / 383.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008543/0.2806, allocations: 1.426 MB / 384.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006293/0.2812, allocations: 38.41 kB / 384.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/0.2813, allocations: 25.59 kB / 384.7 MB, free: 13.26 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.0002689/0.2816, allocations: 211 kB / 384.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.2818, allocations: 59.5 kB / 384.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001776/0.2835, allocations: 0.8415 MB / 385.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.2836, allocations: 11.38 kB / 385.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2836, allocations: 1.188 kB / 385.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.2836, allocations: 4.094 kB / 385.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003763/0.2874, allocations: 1.855 MB / 387.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.2874, allocations: 1.125 kB / 387.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.2879, allocations: 107 kB / 387.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/0.2903, allocations: 475.3 kB / 388.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-05/0.2903, allocations: 12.84 kB / 388.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004719/0.2951, allocations: 3.149 MB / 391.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.2951, allocations: 2.078 kB / 391.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002819/0.2979, allocations: 1.374 MB / 392.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.2982, allocations: 210.4 kB / 392.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.2984, allocations: 16.12 kB / 393 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006287/0.299, allocations: 39.34 kB / 393 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.2992, allocations: 49.52 kB / 393 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.998e-05/0.2992, allocations: 17.16 kB / 393.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004881/0.2997, allocations: 395 kB / 393.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2997, allocations: 0 / 393.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008797/0.3006, allocations: 193.5 kB / 393.6 MB, free: 8.004 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.000311/0.3009, allocations: 147.8 kB / 393.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3025, allocations: 0.7271 MB / 394.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3025, allocations: 1.875 kB / 394.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008431/0.3034, allocations: 0.5262 MB / 395 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006634/0.304, allocations: 95.97 kB / 395.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.3068, allocations: 1.473 MB / 396.6 MB, free: 6.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3071, allocations: 0.9094 MB / 397.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002965/0.3074, allocations: 69.09 kB / 397.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.3076, allocations: 49.84 kB / 397.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3076, allocations: 0 / 397.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of Templates: time 0.01535/0.3229, allocations: 10.25 MB / 407.9 MB, free: 12.56 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 -s gbode -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