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.0007878/0.0007878, allocations: 91.75 kB / 17.31 MB, free: 5.59 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.0008338/0.0008338, allocations: 182.4 kB / 18.21 MB, free: 5.191 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.123/1.123, allocations: 223.3 MB / 242.3 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002267/0.0002266, allocations: 7.938 kB / 302.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07107/0.07131, allocations: 50.41 MB / 352.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003613/0.07494, allocations: 3.971 MB / 356.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.07724, allocations: 1.59 MB / 358.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000357/0.07761, allocations: 11.94 kB / 358.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003169/0.07794, allocations: 99.28 kB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007487/0.07869, allocations: 306.5 kB / 358.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.07907, allocations: 199.8 kB / 358.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008239/0.0799, allocations: 0.9197 MB / 359.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.0802, allocations: 206.2 kB / 359.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003991/0.08061, allocations: 318.7 kB / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004426/0.08106, allocations: 374.3 kB / 360.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.608e-05/0.08116, allocations: 47.94 kB / 360.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003036/0.08147, allocations: 159.9 kB / 360.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.08159, allocations: 135.4 kB / 360.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003155/0.08191, allocations: 383.8 kB / 361.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006808/0.0826, allocations: 0.8919 MB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.08261, allocations: 0 / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.08262, allocations: 0 / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.08264, allocations: 0 / 362.1 MB, free: 10.06 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.001969/0.08461, allocations: 0.9781 MB / 363 MB, free: 9.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.08465, allocations: 8.031 kB / 363.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.0848, allocations: 76.09 kB / 363.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006086/0.08542, allocations: 0.5145 MB / 363.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.19e-05/0.0855, allocations: 71.58 kB / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.08568, allocations: 72.48 kB / 363.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.08672, allocations: 0.6097 MB / 364.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.08675, allocations: 4 kB / 364.4 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/0.08681, allocations: 24 kB / 364.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.08683, allocations: 15.98 kB / 364.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.08786, allocations: 0.536 MB / 365 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.09085, allocations: 2.326 MB / 367.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008848/0.09175, allocations: 490.3 kB / 367.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004921/0.09225, allocations: 282.1 kB / 368.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.09229, allocations: 4 kB / 368.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.09231, allocations: 42.48 kB / 368.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.453e-06/0.09232, allocations: 4 kB / 368.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1409/0.2332, allocations: 3.694 MB / 371.8 MB, free: 24.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.2333, allocations: 84.08 kB / 371.9 MB, free: 24.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008431/0.2342, allocations: 0.5346 MB / 372.4 MB, free: 24.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.2343, allocations: 37.45 kB / 372.4 MB, free: 24.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.2345, allocations: 314.8 kB / 372.8 MB, free: 24.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.2346, allocations: 210.8 kB / 373 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.589e-05/0.2347, allocations: 57.81 kB / 373 MB, free: 23.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.598e-05/0.2348, allocations: 365.5 kB / 373.4 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005739/0.2354, allocations: 257.9 kB / 373.6 MB, free: 23.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.236, allocations: 362.6 kB / 374 MB, free: 23.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.2372, allocations: 0.6255 MB / 374.6 MB, free: 23.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.2372, allocations: 0 / 374.6 MB, free: 23.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001448/0.2387, allocations: 0.7597 MB / 375.4 MB, free: 23.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2387, allocations: 7.5 kB / 375.4 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2387, allocations: 2.969 kB / 375.4 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.2389, allocations: 32.34 kB / 375.4 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007116/0.2396, allocations: 171 kB / 375.6 MB, free: 23.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006851/0.2403, allocations: 1.33 MB / 376.9 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005611/0.2409, allocations: 45.06 kB / 376.9 MB, free: 21.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.044e-05/0.2409, allocations: 24.92 kB / 377 MB, free: 21.85 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.000224/0.2412, allocations: 198.9 kB / 377.2 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.2413, allocations: 60.53 kB / 377.2 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.2429, allocations: 0.8702 MB / 378.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.243, allocations: 6.875 kB / 378.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.243, allocations: 1.375 kB / 378.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.243, allocations: 5.547 kB / 378.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00329/0.2463, allocations: 1.894 MB / 380 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.2463, allocations: 1.812 kB / 380 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.2468, allocations: 113.3 kB / 380.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002298/0.2491, allocations: 0.4962 MB / 380.6 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/0.2491, allocations: 17.77 kB / 380.6 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004088/0.2532, allocations: 2.956 MB / 383.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2532, allocations: 0 / 383.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.2559, allocations: 1.412 MB / 385 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/0.2561, allocations: 214.4 kB / 385.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.487e-05/0.2562, allocations: 11.88 kB / 385.2 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005612/0.2568, allocations: 46.5 kB / 385.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.2569, allocations: 53.66 kB / 385.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.2569, allocations: 18.31 kB / 385.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004136/0.2574, allocations: 392.8 kB / 385.7 MB, free: 17.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2574, allocations: 0.5625 kB / 385.7 MB, free: 17.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006265/0.258, allocations: 187.5 kB / 385.9 MB, free: 16.98 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.0002212/0.2582, allocations: 157 kB / 386.1 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.2595, allocations: 0.7552 MB / 386.8 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2595, allocations: 1.031 kB / 386.8 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008062/0.2604, allocations: 0.5318 MB / 387.3 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.261, allocations: 91.19 kB / 387.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.2635, allocations: 1.901 MB / 389.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.2638, allocations: 0.9038 MB / 390.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.264, allocations: 57.3 kB / 390.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.264, allocations: 0 / 390.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Templates: time 0.01236/0.2764, allocations: 11.66 MB / 402 MB, free: 6.871 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/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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches