Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.001541/0.001541, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.001862/0.001862, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 56.14 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09076/0.09282, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005287/0.09815, allocations: 3.346 MB / 330.7 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.1007, allocations: 1.392 MB / 332.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003494/0.101, allocations: 4 kB / 332.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003345/0.1044, allocations: 2.663 MB / 334.8 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005801/0.105, allocations: 174.7 kB / 335 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007158/0.1058, allocations: 283.5 kB / 335.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002163/0.1079, allocations: 1.79 MB / 337 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.1082, allocations: 139.5 kB / 337.2 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00042/0.1086, allocations: 305.1 kB / 337.5 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.1091, allocations: 330.8 kB / 337.8 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.1092, allocations: 44 kB / 337.8 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.1094, allocations: 64 kB / 337.9 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005843/0.11, allocations: 0.8491 MB / 338.7 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008022/0.1109, allocations: 0.9307 MB / 339.7 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00209/0.1129, allocations: 2.581 MB / 342.3 MB, free: 5.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.113, allocations: 0 / 342.3 MB, free: 5.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.113, allocations: 0 / 342.3 MB, free: 5.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.62e-05/0.1131, allocations: 4 kB / 342.3 MB, free: 5.434 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005444/0.1185, allocations: 2.798 MB / 345.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.1186, allocations: 15.89 kB / 345.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.1187, allocations: 70.72 kB / 345.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005092/0.1192, allocations: 281.3 kB / 345.4 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002967/0.1222, allocations: 1.82 MB / 347.2 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.623e-05/0.1223, allocations: 66.95 kB / 347.3 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.1225, allocations: 43.98 kB / 347.3 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007539/0.1232, allocations: 391 kB / 347.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1233, allocations: 0 / 347.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.1233, allocations: 16 kB / 347.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1233, allocations: 8 kB / 347.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007091/0.124, allocations: 339.7 kB / 348.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004825/0.1289, allocations: 2.907 MB / 351 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.1295, allocations: 313 kB / 351.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.1299, allocations: 165.7 kB / 351.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.1299, allocations: 4 kB / 351.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.13, allocations: 43.09 kB / 351.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.13, allocations: 0 / 351.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005066/0.135, allocations: 2.362 MB / 353.9 MB, free: 9.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.1351, allocations: 89.56 kB / 353.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007118/0.1422, allocations: 5.431 MB / 359.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.1423, allocations: 37.7 kB / 359.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.1434, allocations: 1.203 MB / 360.6 MB, free: 2.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.1436, allocations: 169.5 kB / 360.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.1437, allocations: 86.25 kB / 360.9 MB, free: 2.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1439, allocations: 330 kB / 361.2 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003324/0.1442, allocations: 141.1 kB / 361.3 MB, free: 1.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/0.1446, allocations: 225.6 kB / 361.5 MB, free: 1.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006854/0.1453, allocations: 384.3 kB / 361.9 MB, free: 1.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1453, allocations: 8 kB / 361.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001214/0.1465, allocations: 0.6761 MB / 362.6 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1465, allocations: 7.984 kB / 362.6 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1466, allocations: 4 kB / 362.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.1466, allocations: 4.25 kB / 362.6 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005137/0.1471, allocations: 123.8 kB / 362.7 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.1471, allocations: 7.938 kB / 362.8 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.1476, allocations: 20 kB / 362.8 MB, free: 460 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.1477, allocations: 19.98 kB / 362.8 MB, free: 440 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009738/0.1486, allocations: 0.9153 MB / 363.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.149, allocations: 272.4 kB / 364 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.1504, allocations: 0.7747 MB / 364.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1505, allocations: 8 kB / 364.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1505, allocations: 0 / 364.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1505, allocations: 3.984 kB / 364.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.1524, allocations: 1.473 MB / 366.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1524, allocations: 4 kB / 366.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.1528, allocations: 99.88 kB / 366.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003718/0.1532, allocations: 80.8 kB / 366.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.1533, allocations: 15.98 kB / 366.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006283/0.1539, allocations: 0.6382 MB / 367.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1539, allocations: 0 / 367.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.1557, allocations: 1.061 MB / 368.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008916/0.1566, allocations: 489.6 kB / 368.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.1569, allocations: 8 kB / 368.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/0.1574, allocations: 19.98 kB / 368.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.207e-05/0.1575, allocations: 28.39 kB / 368.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.1576, allocations: 19.98 kB / 368.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.004948/0.1625, allocations: 3.966 MB / 372.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1625, allocations: 7.938 kB / 372.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007861/0.1633, allocations: 204 kB / 372.9 MB, free: 6.23 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002832/0.1662, allocations: 1.93 MB / 374.8 MB, free: 4.277 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009459/0.1671, allocations: 405.2 kB / 375.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1671, allocations: 4.125 kB / 375.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004606/0.1676, allocations: 218.4 kB / 375.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.1688, allocations: 187.2 kB / 375.6 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1826/0.3514, allocations: 22.37 MB / 397.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.3527, allocations: 1.814 MB / 399.8 MB, free: 42.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000489/0.3532, allocations: 266.3 kB / 400 MB, free: 41.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008757/0.3541, allocations: 0.9366 MB / 401 MB, free: 40.91 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3541, allocations: 0 / 401 MB, free: 40.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05992/0.414, allocations: 38.08 MB / 439 MB, free: 3.027 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.07/17.48, allocations: 4.953 kB / 439 MB, free: 3.023 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches