Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 104.7 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 51.23 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09107, allocations: 49.44 MB / 349.6 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005509/0.09662, allocations: 4.377 MB / 354 MB, free: 340 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002766/0.09943, allocations: 1.578 MB / 355.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007069/0.1002, allocations: 11.94 kB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006417/0.1009, allocations: 91.3 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001613/0.1026, allocations: 318.4 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007841/0.1034, allocations: 199.8 kB / 356.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.1048, allocations: 0.9802 MB / 357.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004306/0.1052, allocations: 253.3 kB / 357.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005635/0.1058, allocations: 374.6 kB / 357.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006798/0.1065, allocations: 426.2 kB / 358.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002714/0.1068, allocations: 96 kB / 358.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005826/0.1074, allocations: 215.9 kB / 358.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.1076, allocations: 199.3 kB / 358.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004757/0.1081, allocations: 418.1 kB / 359.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.1093, allocations: 1.145 MB / 360.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1093, allocations: 0 / 360.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1093, allocations: 0 / 360.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.538e-05/0.1094, allocations: 4 kB / 360.2 MB, free: 10.05 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.002758/0.1121, allocations: 1.106 MB / 361.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1122, allocations: 8.031 kB / 361.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.1124, allocations: 80 kB / 361.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007565/0.1131, allocations: 0.503 MB / 361.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-05/0.1132, allocations: 75.56 kB / 362 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.1135, allocations: 68.41 kB / 362 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.1147, allocations: 0.6058 MB / 362.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1147, allocations: 0 / 362.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/0.1148, allocations: 24 kB / 362.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1148, allocations: 12 kB / 362.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1159, allocations: 0.5243 MB / 363.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.1192, allocations: 2.306 MB / 365.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009508/0.1202, allocations: 489.2 kB / 366 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005302/0.1207, allocations: 270 kB / 366.3 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.1207, allocations: 8 kB / 366.3 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.1208, allocations: 42.56 kB / 366.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.974e-06/0.1208, allocations: 0 / 366.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01407/0.1349, allocations: 3.543 MB / 369.9 MB, free: 60 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1343/0.2692, allocations: 80.64 kB / 369.9 MB, free: 25.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007932/0.27, allocations: 0.5298 MB / 370.5 MB, free: 25.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.2701, allocations: 38.08 kB / 370.5 MB, free: 25.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.2703, allocations: 311.4 kB / 370.8 MB, free: 25.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.2704, allocations: 212.4 kB / 371 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.2706, allocations: 110.1 kB / 371.1 MB, free: 25.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.291e-05/0.2707, allocations: 365.8 kB / 371.5 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005841/0.2713, allocations: 248 kB / 371.7 MB, free: 25.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000599/0.2719, allocations: 351 kB / 372.1 MB, free: 24.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.2731, allocations: 0.6003 MB / 372.7 MB, free: 24.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2731, allocations: 0 / 372.7 MB, free: 24.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001547/0.2746, allocations: 0.7477 MB / 373.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.2747, allocations: 7 kB / 373.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2747, allocations: 5.062 kB / 373.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.2748, allocations: 31.39 kB / 373.4 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008408/0.2757, allocations: 165.8 kB / 373.6 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007899/0.2765, allocations: 1.432 MB / 375 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006118/0.2771, allocations: 38.61 kB / 375.1 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.242e-05/0.2772, allocations: 23.53 kB / 375.1 MB, free: 22.83 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.0002513/0.2774, allocations: 205.3 kB / 375.3 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.2776, allocations: 58.81 kB / 375.4 MB, free: 22.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.2793, allocations: 0.8449 MB / 376.2 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2794, allocations: 10.69 kB / 376.2 MB, free: 22.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2794, allocations: 5.797 kB / 376.2 MB, free: 22.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.2794, allocations: 3.797 kB / 376.2 MB, free: 22.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.2829, allocations: 1.849 MB / 378.1 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.2829, allocations: 2.469 kB / 378.1 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/0.2834, allocations: 107.2 kB / 378.2 MB, free: 21.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0025/0.286, allocations: 480.1 kB / 378.7 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/0.286, allocations: 14.06 kB / 378.7 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004633/0.2907, allocations: 3.16 MB / 381.8 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2907, allocations: 0 / 381.8 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002834/0.2935, allocations: 1.368 MB / 383.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.2939, allocations: 209.9 kB / 383.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.232e-05/0.294, allocations: 16.94 kB / 383.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006341/0.2946, allocations: 39.22 kB / 383.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.2948, allocations: 48.12 kB / 383.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.2948, allocations: 18.36 kB / 383.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004448/0.2953, allocations: 392.5 kB / 383.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2953, allocations: 0 / 383.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007356/0.296, allocations: 185.9 kB / 384.1 MB, free: 17.78 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.0002571/0.2963, allocations: 161.1 kB / 384.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.298, allocations: 0.7448 MB / 385 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.298, allocations: 2.062 kB / 385 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008557/0.2988, allocations: 0.5265 MB / 385.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.2996, allocations: 96.78 kB / 385.6 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.3021, allocations: 1.749 MB / 387.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.3024, allocations: 0.9 MB / 388.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003641/0.3028, allocations: 79.83 kB / 388.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.303, allocations: 53 kB / 388.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.303, allocations: 0 / 388.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01402/0.317, allocations: 10.08 MB / 398.5 MB, free: 9.289 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches