Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00154/0.00154, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.06 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08687/0.08815, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005116/0.0933, allocations: 3.442 MB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002804/0.09613, allocations: 1.652 MB / 362.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003206/0.09647, allocations: 11.94 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002695/0.09918, allocations: 2.655 MB / 365.3 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005788/0.0998, allocations: 222.5 kB / 365.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007281/0.1005, allocations: 326.7 kB / 365.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.1022, allocations: 1.813 MB / 367.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.1024, allocations: 135.7 kB / 367.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.1028, allocations: 321 kB / 368.1 MB, free: 3.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003726/0.1032, allocations: 330.8 kB / 368.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-05/0.1033, allocations: 44 kB / 368.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.1035, allocations: 87.98 kB / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005957/0.1041, allocations: 0.853 MB / 369.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006766/0.1048, allocations: 0.9384 MB / 370.4 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1475/0.2523, allocations: 2.597 MB / 373 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2524, allocations: 1.125 kB / 373 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2524, allocations: 0 / 373 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.296e-05/0.2524, allocations: 0 / 373 MB, free: 13.09 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003785/0.2562, allocations: 2.813 MB / 375.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2563, allocations: 9.688 kB / 375.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.27e-05/0.2564, allocations: 77.97 kB / 375.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004336/0.2568, allocations: 292.3 kB / 376.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.2589, allocations: 1.834 MB / 378 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.586e-05/0.2589, allocations: 59.06 kB / 378.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001646/0.2591, allocations: 46.98 kB / 378.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006815/0.2598, allocations: 396 kB / 378.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.2598, allocations: 2.312 kB / 378.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.2599, allocations: 16.36 kB / 378.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.2599, allocations: 8.438 kB / 378.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006991/0.2606, allocations: 333 kB / 378.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003666/0.2643, allocations: 2.912 MB / 381.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.2649, allocations: 326.3 kB / 382.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.2652, allocations: 163 kB / 382.2 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.2652, allocations: 5.328 kB / 382.2 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.2653, allocations: 39.62 kB / 382.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.823e-06/0.2653, allocations: 0 / 382.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004482/0.2697, allocations: 2.405 MB / 384.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.2698, allocations: 83.02 kB / 384.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005938/0.2757, allocations: 5.455 MB / 390.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.2758, allocations: 39.41 kB / 390.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008299/0.2766, allocations: 1.18 MB / 391.4 MB, free: 5.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.429e-05/0.2767, allocations: 175 kB / 391.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.2769, allocations: 88.33 kB / 391.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.81e-05/0.2769, allocations: 324.8 kB / 392 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.2773, allocations: 140.4 kB / 392.2 MB, free: 4.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003332/0.2776, allocations: 224.2 kB / 392.4 MB, free: 4.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006566/0.2783, allocations: 381.4 kB / 392.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2783, allocations: 0 / 392.7 MB, free: 4.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00112/0.2794, allocations: 0.6889 MB / 393.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2794, allocations: 6 kB / 393.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2794, allocations: 3.406 kB / 393.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.2795, allocations: 5.5 kB / 393.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005055/0.28, allocations: 124.3 kB / 393.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.28, allocations: 5.25 kB / 393.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005117/0.2805, allocations: 17.53 kB / 393.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.2806, allocations: 26.97 kB / 393.6 MB, free: 3.801 MB / 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.0008587/0.2814, allocations: 0.9178 MB / 394.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002768/0.2817, allocations: 273.5 kB / 394.8 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.283, allocations: 0.8077 MB / 395.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.283, allocations: 3.562 kB / 395.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.283, allocations: 1.125 kB / 395.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.283, allocations: 5.469 kB / 395.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.2846, allocations: 1.47 MB / 397.1 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2846, allocations: 0 / 397.1 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.285, allocations: 98.97 kB / 397.2 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003152/0.2854, allocations: 103 kB / 397.3 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.2854, allocations: 10.73 kB / 397.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003855/0.2858, allocations: 0.6324 MB / 397.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2858, allocations: 2.344 kB / 397.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.2872, allocations: 1.083 MB / 399 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006058/0.2878, allocations: 493.4 kB / 399.5 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.288, allocations: 12.03 kB / 399.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.2886, allocations: 20.42 kB / 399.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.2886, allocations: 30.08 kB / 399.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.2887, allocations: 10.97 kB / 399.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.004375/0.293, allocations: 3.991 MB / 403.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2931, allocations: 0 / 403.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007002/0.2938, allocations: 204 kB / 403.8 MB, free: 12.5 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.002651/0.2964, allocations: 1.94 MB / 405.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008738/0.2973, allocations: 406.5 kB / 406.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2973, allocations: 4 kB / 406.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004438/0.2978, allocations: 215 kB / 406.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.2989, allocations: 190.8 kB / 406.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04152/0.3405, allocations: 22.49 MB / 429 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/0.342, allocations: 1.818 MB / 430.8 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006193/0.3426, allocations: 275.9 kB / 431.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/0.3436, allocations: 0.9405 MB / 432 MB, free: 15.05 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3436, allocations: 0 / 432 MB, free: 15.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07246/0.4161, allocations: 38.25 MB / 470.3 MB, free: 9.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.66, allocations: 7.469 kB / 470.3 MB, free: 9.074 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches