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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 107.3 kB / 16.92 MB, free: 6.117 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.00168/0.001681, allocations: 191.3 kB / 17.85 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.03/2.03, allocations: 222.9 MB / 241.5 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002084, allocations: 51.52 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1463, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.01114/0.1575, allocations: 4.366 MB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005194/0.1628, allocations: 1.586 MB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007362/0.1636, allocations: 11.94 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000649/0.1643, allocations: 126.8 kB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001603/0.1659, allocations: 361.8 kB / 356.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000796/0.1667, allocations: 231.7 kB / 356.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001636/0.1684, allocations: 0.9803 MB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005986/0.169, allocations: 237.4 kB / 358 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007657/0.1698, allocations: 370.8 kB / 358.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008166/0.1706, allocations: 426.2 kB / 358.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003267/0.171, allocations: 96 kB / 358.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007458/0.1718, allocations: 215.9 kB / 359.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003671/0.1721, allocations: 199.3 kB / 359.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008635/0.173, allocations: 422.1 kB / 359.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.175, allocations: 1.145 MB / 360.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1751, allocations: 0 / 360.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1751, allocations: 0 / 360.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.454e-05/0.1751, allocations: 0 / 360.9 MB, free: 9.551 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.004993/0.1801, allocations: 1.106 MB / 362 MB, free: 8.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.368e-05/0.1802, allocations: 11.89 kB / 362 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002347/0.1805, allocations: 98.7 kB / 362.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002937/0.1808, allocations: 84 kB / 362.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.1822, allocations: 0.5068 MB / 362.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.1823, allocations: 71.58 kB / 362.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003535/0.1827, allocations: 72.2 kB / 362.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.1848, allocations: 0.5981 MB / 363.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.1849, allocations: 7.938 kB / 363.4 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.185, allocations: 24 kB / 363.4 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.185, allocations: 16 kB / 363.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002204/0.1873, allocations: 0.5243 MB / 364 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006495/0.1938, allocations: 2.302 MB / 366.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.1955, allocations: 484.2 kB / 366.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.1966, allocations: 267.1 kB / 367 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.353e-05/0.1967, allocations: 8.219 kB / 367 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/0.1968, allocations: 46.5 kB / 367.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 4.659e-06/0.1968, allocations: 0 / 367.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.2978/0.4946, allocations: 3.532 MB / 370.6 MB, free: 25.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.4947, allocations: 84.39 kB / 370.7 MB, free: 25.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.496, allocations: 0.5338 MB / 371.2 MB, free: 25.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.4961, allocations: 38.08 kB / 371.3 MB, free: 25.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.4964, allocations: 317.7 kB / 371.6 MB, free: 25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.4966, allocations: 211.9 kB / 371.8 MB, free: 24.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003503/0.497, allocations: 111.9 kB / 371.9 MB, free: 24.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4972, allocations: 368.7 kB / 372.2 MB, free: 24.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009081/0.4981, allocations: 245.3 kB / 372.5 MB, free: 24.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009871/0.4991, allocations: 346.1 kB / 372.8 MB, free: 24.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.501, allocations: 0.6053 MB / 373.4 MB, free: 24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.501, allocations: 1 kB / 373.4 MB, free: 24 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002579/0.5036, allocations: 0.7434 MB / 374.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.5037, allocations: 9.516 kB / 374.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.5037, allocations: 2.375 kB / 374.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002689/0.504, allocations: 30.41 kB / 374.2 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/0.5054, allocations: 171.2 kB / 374.4 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.5067, allocations: 1.425 MB / 375.8 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.5077, allocations: 44.19 kB / 375.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.254e-05/0.5078, allocations: 22.38 kB / 375.9 MB, free: 22.2 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.0004647/0.5083, allocations: 206.5 kB / 376.1 MB, free: 22.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002356/0.5086, allocations: 62.23 kB / 376.1 MB, free: 22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.5115, allocations: 0.8447 MB / 377 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.5116, allocations: 6.875 kB / 377 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5116, allocations: 5.703 kB / 377 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.5116, allocations: 4.984 kB / 377 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005988/0.5176, allocations: 1.847 MB / 378.8 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.5176, allocations: 0 / 378.8 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008683/0.5185, allocations: 110.8 kB / 379 MB, free: 20.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003707/0.5222, allocations: 472.9 kB / 379.4 MB, free: 20.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.5224, allocations: 14.83 kB / 379.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007388/0.5318, allocations: 3.162 MB / 382.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5318, allocations: 0.9062 kB / 382.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/0.5358, allocations: 1.367 MB / 384 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004715/0.5363, allocations: 205.9 kB / 384.2 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.5365, allocations: 11.08 kB / 384.2 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007562/0.5373, allocations: 44.25 kB / 384.2 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.5375, allocations: 51.98 kB / 384.3 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.097e-05/0.5376, allocations: 18.61 kB / 384.3 MB, free: 17.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007347/0.5383, allocations: 392.5 kB / 384.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5383, allocations: 0 / 384.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001068/0.5394, allocations: 184.5 kB / 384.8 MB, free: 17.13 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.004013/0.5434, allocations: 1.969 MB / 386.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002192/0.5456, allocations: 0.7547 MB / 387.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.5456, allocations: 1.875 kB / 387.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.5467, allocations: 0.5195 MB / 388.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009791/0.5477, allocations: 88.7 kB / 388.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.559, allocations: 6.067 MB / 394.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.5595, allocations: 0.9077 MB / 395.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004504/0.56, allocations: 68.05 kB / 395.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004346/0.5605, allocations: 247.4 kB / 395.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.5605, allocations: 0 / 395.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07123/0.6317, allocations: 15.54 MB / 411 MB, free: 12.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.39/19.03, allocations: 7.891 kB / 411 MB, free: 12.8 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > 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.csv","/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