Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 191.9 kB / 17.43 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 229.5 MB / 247.7 MB, free: 6.289 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007652/0.0007653, allocations: 95.59 kB / 299.9 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002315/0.0002319, allocations: 8 kB / 360.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2041, allocations: 51.41 MB / 412.1 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003493/0.2077, allocations: 3.796 MB / 415.9 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.2097, allocations: 1.885 MB / 417.7 MB, free: 20.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.21, allocations: 7.938 kB / 417.7 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000283/0.2103, allocations: 99.28 kB / 417.8 MB, free: 20 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000557/0.2109, allocations: 311.7 kB / 418.1 MB, free: 19.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.2112, allocations: 207.8 kB / 418.4 MB, free: 19.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005476/0.2117, allocations: 0.916 MB / 419.3 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.212, allocations: 202.3 kB / 419.5 MB, free: 18.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.2123, allocations: 314.7 kB / 419.8 MB, free: 18.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003057/0.2126, allocations: 374.3 kB / 420.1 MB, free: 17.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.072e-05/0.2127, allocations: 44 kB / 420.2 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.2129, allocations: 163.9 kB / 420.3 MB, free: 17.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.213, allocations: 143.3 kB / 420.5 MB, free: 17.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002409/0.2133, allocations: 375.8 kB / 420.8 MB, free: 16.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006425/0.2139, allocations: 1.101 MB / 421.9 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2139, allocations: 0 / 421.9 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2139, allocations: 3.938 kB / 422 MB, free: 15.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.214, allocations: 0 / 422 MB, free: 15.86 MB / 298.7 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.00172/0.2157, allocations: 0.9743 MB / 422.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.2157, allocations: 8.031 kB / 422.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/0.2159, allocations: 91.98 kB / 423 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.2164, allocations: 0.5145 MB / 423.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.158e-05/0.2165, allocations: 71.58 kB / 423.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.2167, allocations: 68.48 kB / 423.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008872/0.2175, allocations: 0.6097 MB / 424.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.2176, allocations: 0 / 424.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.584e-05/0.2176, allocations: 24 kB / 424.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2176, allocations: 12 kB / 424.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000925/0.2186, allocations: 0.536 MB / 424.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.2211, allocations: 2.318 MB / 427.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000876/0.222, allocations: 493.4 kB / 427.7 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004385/0.2224, allocations: 274.2 kB / 427.9 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.2225, allocations: 4 kB / 427.9 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.2225, allocations: 42.56 kB / 428 MB, free: 9.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.453e-06/0.2225, allocations: 0 / 428 MB, free: 9.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01095/0.2334, allocations: 3.693 MB / 431.7 MB, free: 5.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.2335, allocations: 85.67 kB / 431.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005048/0.234, allocations: 0.5331 MB / 432.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.234, allocations: 37.7 kB / 432.3 MB, free: 5.113 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.2342, allocations: 312.3 kB / 432.6 MB, free: 4.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.2343, allocations: 208.9 kB / 432.8 MB, free: 4.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.2343, allocations: 16 kB / 432.8 MB, free: 4.578 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.092e-05/0.2344, allocations: 366.8 kB / 433.2 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004765/0.2349, allocations: 253.2 kB / 433.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004985/0.2354, allocations: 360.4 kB / 433.8 MB, free: 3.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009734/0.2364, allocations: 0.6098 MB / 434.4 MB, free: 2.941 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.2364, allocations: 4 kB / 434.4 MB, free: 2.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001254/0.2376, allocations: 0.7607 MB / 435.2 MB, free: 2.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2377, allocations: 8 kB / 435.2 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.2377, allocations: 0 / 435.2 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.2378, allocations: 32.84 kB / 435.2 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.2386, allocations: 179.8 kB / 435.4 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006788/0.2392, allocations: 1.339 MB / 436.7 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/0.2398, allocations: 39.97 kB / 436.8 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.2398, allocations: 27.98 kB / 436.8 MB, free: 416 kB / 298.7 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.0002012/0.24, allocations: 206.3 kB / 437 MB, free: 200 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.823e-05/0.2401, allocations: 59.34 kB / 437.1 MB, free: 140 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.2419, allocations: 0.8685 MB / 437.9 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.2419, allocations: 15.92 kB / 437.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.2419, allocations: 0 / 437.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.242, allocations: 0 / 437.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003587/0.2455, allocations: 1.89 MB / 439.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2456, allocations: 0 / 439.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.2461, allocations: 115.8 kB / 439.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002315/0.2484, allocations: 0.4964 MB / 440.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.375e-05/0.2485, allocations: 16 kB / 440.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00466/0.2531, allocations: 2.953 MB / 443.4 MB, free: 9.578 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2531, allocations: 4 kB / 443.4 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002792/0.2559, allocations: 1.405 MB / 444.8 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.2562, allocations: 212.2 kB / 445 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.471e-05/0.2563, allocations: 15.98 kB / 445 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000552/0.2569, allocations: 47.97 kB / 445.1 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.257, allocations: 56.42 kB / 445.1 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/0.257, allocations: 19.94 kB / 445.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004449/0.2575, allocations: 382.9 kB / 445.5 MB, free: 7.414 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2575, allocations: 0 / 445.5 MB, free: 7.414 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005982/0.2581, allocations: 188 kB / 445.7 MB, free: 7.23 MB / 314.7 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.0002802/0.2584, allocations: 161.2 kB / 445.9 MB, free: 7.066 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.2598, allocations: 0.7443 MB / 446.6 MB, free: 6.309 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2598, allocations: 0 / 446.6 MB, free: 6.309 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008617/0.2607, allocations: 0.5332 MB / 447.2 MB, free: 5.766 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.2613, allocations: 85.94 kB / 447.2 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.2639, allocations: 1.857 MB / 449.1 MB, free: 3.793 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.2643, allocations: 0.8968 MB / 450 MB, free: 2.867 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003281/0.2647, allocations: 72.8 kB / 450.1 MB, free: 2.793 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.2649, allocations: 51.42 kB / 450.1 MB, free: 2.742 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2649, allocations: 4 kB / 450.1 MB, free: 2.738 MB / 314.7 MB Notification: Performance of Templates: time 0.01496/0.2798, allocations: 9.567 MB / 459.7 MB, free: 9.219 MB / 330.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches