Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001431/0.001431, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001742/0.001742, allocations: 213.7 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 63.89 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2507, allocations: 53.42 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005869/0.2565, allocations: 3.967 MB / 435.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.2593, allocations: 1.559 MB / 436.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.2595, allocations: 11.94 kB / 436.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.2599, allocations: 124.5 kB / 436.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007826/0.2607, allocations: 365.6 kB / 437.2 MB, free: 444 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/0.2612, allocations: 243.6 kB / 437.4 MB, free: 200 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009616/0.2621, allocations: 0.9785 MB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.2624, allocations: 154 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005186/0.2629, allocations: 398.7 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005147/0.2634, allocations: 382.2 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.2636, allocations: 96 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003798/0.2639, allocations: 211.9 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.2641, allocations: 195.4 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.2645, allocations: 342.5 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.2657, allocations: 1.183 MB / 441.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2657, allocations: 0 / 441.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2657, allocations: 0 / 441.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.2657, allocations: 4 kB / 441.3 MB, free: 12.27 MB / 350.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.002419/0.2681, allocations: 1.046 MB / 442.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.2682, allocations: 11.98 kB / 442.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.2683, allocations: 102.6 kB / 442.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.2685, allocations: 88.45 kB / 442.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007885/0.2693, allocations: 465.5 kB / 443 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.2695, allocations: 134.9 kB / 443.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.2697, allocations: 68.3 kB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.2709, allocations: 0.7024 MB / 443.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.2709, allocations: 0 / 443.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.558e-05/0.271, allocations: 24 kB / 443.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.271, allocations: 12 kB / 443.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.2722, allocations: 0.5243 MB / 444.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.2757, allocations: 2.06 MB / 446.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.2767, allocations: 453.2 kB / 447 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005489/0.2773, allocations: 254.1 kB / 447.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.2773, allocations: 4 kB / 447.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.2773, allocations: 46.44 kB / 447.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.2773, allocations: 0 / 447.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01311/0.2904, allocations: 3.329 MB / 450.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.2905, allocations: 89.55 kB / 450.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008051/0.2913, allocations: 0.5409 MB / 451.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.53e-05/0.2914, allocations: 37.7 kB / 451.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.2916, allocations: 312.9 kB / 451.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001996/0.2918, allocations: 230.1 kB / 451.8 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.292, allocations: 114.3 kB / 451.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.2923, allocations: 370.8 kB / 452.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005831/0.2928, allocations: 245.2 kB / 452.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006955/0.2935, allocations: 348.5 kB / 452.8 MB, free: 356 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.2948, allocations: 0.6033 MB / 453.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2948, allocations: 7.875 kB / 453.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001589/0.2964, allocations: 0.7477 MB / 454.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2964, allocations: 4 kB / 454.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2964, allocations: 4 kB / 454.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001671/0.2966, allocations: 28.84 kB / 454.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.2974, allocations: 167.8 kB / 454.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.2987, allocations: 1.319 MB / 455.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005577/0.2993, allocations: 39.97 kB / 455.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.2993, allocations: 23.98 kB / 455.8 MB, free: 13.23 MB / 366.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.0003059/0.2996, allocations: 201.9 kB / 456 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.2998, allocations: 63.61 kB / 456 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3017, allocations: 0.8397 MB / 456.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.3017, allocations: 11.94 kB / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.3017, allocations: 0 / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.934e-06/0.3017, allocations: 3.984 kB / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003844/0.3055, allocations: 1.667 MB / 458.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3055, allocations: 4 kB / 458.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005457/0.3061, allocations: 107.9 kB / 458.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.3084, allocations: 472.3 kB / 459.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/0.3085, allocations: 15.98 kB / 459.2 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005337/0.3138, allocations: 2.988 MB / 462.1 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3138, allocations: 0 / 462.1 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003133/0.317, allocations: 1.37 MB / 463.5 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/0.3174, allocations: 135.4 kB / 463.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.057e-05/0.3175, allocations: 15.98 kB / 463.7 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006278/0.3181, allocations: 43.97 kB / 463.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.3182, allocations: 48.56 kB / 463.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-05/0.3183, allocations: 19.98 kB / 463.8 MB, free: 5.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005252/0.3188, allocations: 390.9 kB / 464.2 MB, free: 4.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3188, allocations: 0 / 464.2 MB, free: 4.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007641/0.3196, allocations: 192 kB / 464.3 MB, free: 4.473 MB / 366.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.00357/0.3231, allocations: 1.961 MB / 466.3 MB, free: 2.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.3247, allocations: 0.711 MB / 467 MB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3247, allocations: 0 / 467 MB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009734/0.3257, allocations: 0.5027 MB / 467.5 MB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/0.3265, allocations: 100.8 kB / 467.6 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.3366, allocations: 5.939 MB / 473.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.337, allocations: 307.2 kB / 473.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000384/0.3373, allocations: 68.81 kB / 473.9 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004454/0.3378, allocations: 243.3 kB / 474.2 MB, free: 10.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3378, allocations: 0 / 474.2 MB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0663/0.4041, allocations: 16.39 MB / 490.5 MB, free: 10.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.04, allocations: 8.047 kB / 490.5 MB, free: 10.25 MB / 398.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transformer.core.Hstat in file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 659] "" Variables in the reference:time,transformer.core.B,transformer.core.MagRel,transformer.core.Hstat,transformer.winding1.i,transformer.winding2.i Variables in the result:time,transformer.core.B,transformer.core.MagRel,transformer.winding1.i,transformer.winding2.i [Calling sys.exit(0), Time elapsed: 26.11270414525643]