Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.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.001978/0.001978, allocations: 110 kB / 20.43 MB, free: 1.453 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.002254/0.002254, allocations: 213.6 kB / 23.74 MB, free: 4.66 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.482/1.482, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 63.89 kB / 377.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2367, allocations: 53.42 MB / 431.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00368/0.2403, allocations: 2.271 MB / 433.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.2426, allocations: 1.254 MB / 434.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.2427, allocations: 7.938 kB / 434.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.243, allocations: 91.5 kB / 434.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004063/0.2434, allocations: 155.1 kB / 434.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002749/0.2437, allocations: 127.5 kB / 435.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000346/0.2441, allocations: 294.8 kB / 435.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.2443, allocations: 68.78 kB / 435.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.2444, allocations: 115.6 kB / 435.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.2447, allocations: 139.4 kB / 435.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.2447, allocations: 16 kB / 435.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.2448, allocations: 51.98 kB / 435.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.696e-05/0.2449, allocations: 55.77 kB / 435.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.245, allocations: 119.3 kB / 435.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003802/0.2454, allocations: 299.2 kB / 436.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2454, allocations: 0 / 436.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2454, allocations: 3.938 kB / 436.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2454, allocations: 0 / 436.2 MB, free: 1.672 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008142/0.2462, allocations: 497.2 kB / 436.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2463, allocations: 12.03 kB / 436.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.965e-05/0.2463, allocations: 50.73 kB / 436.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.2465, allocations: 32.75 kB / 436.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.2468, allocations: 202 kB / 437 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2468, allocations: 16.38 kB / 437 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.2469, allocations: 12.38 kB / 437 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.2472, allocations: 169.7 kB / 437.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2472, allocations: 0 / 437.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.2472, allocations: 4 kB / 437.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.2472, allocations: 4 kB / 437.2 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.2475, allocations: 123.7 kB / 437.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009146/0.2484, allocations: 0.5227 MB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.2487, allocations: 158.4 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.2489, allocations: 84.83 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.2489, allocations: 352 / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.2491, allocations: 114.1 kB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.352e-06/0.2491, allocations: 0 / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000511/0.2496, allocations: 237.4 kB / 438.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.2497, allocations: 51.41 kB / 438.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.2499, allocations: 272.9 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.25, allocations: 25.7 kB / 438.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2501, allocations: 148.4 kB / 438.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.2501, allocations: 71.33 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.956e-05/0.2502, allocations: 45.67 kB / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.2504, allocations: 334.8 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.2505, allocations: 51.97 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.2506, allocations: 96.06 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.2509, allocations: 146.7 kB / 439.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2509, allocations: 0 / 439.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003564/0.2513, allocations: 205.3 kB / 439.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2513, allocations: 12.09 kB / 439.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.2513, allocations: 0 / 439.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2513, allocations: 0 / 439.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.2515, allocations: 43.98 kB / 439.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.2515, allocations: 3.938 kB / 439.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.2516, allocations: 27.75 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.2516, allocations: 8 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001419/0.2518, allocations: 138.3 kB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.2518, allocations: 27.84 kB / 440.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004195/0.2522, allocations: 214.4 kB / 440.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.2522, allocations: 4 kB / 440.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2522, allocations: 3.938 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2523, allocations: 3.984 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002884/0.2525, allocations: 256.5 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2525, allocations: 7.938 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.2527, allocations: 31.98 kB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2527, allocations: 0 / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.2527, allocations: 4 kB / 440.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.2527, allocations: 4 kB / 440.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.2527, allocations: 15.86 kB / 440.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004992/0.2532, allocations: 276.9 kB / 440.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.024e-05/0.2533, allocations: 23.83 kB / 440.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.2533, allocations: 7.938 kB / 440.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.967e-05/0.2534, allocations: 7.984 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.2534, allocations: 11.98 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.2535, allocations: 4.062 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001939/0.2537, allocations: 200.5 kB / 441.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2537, allocations: 0 / 441.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.2539, allocations: 55.89 kB / 441.2 MB, free: 12.4 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002208/0.2561, allocations: 1.127 MB / 442.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.2565, allocations: 135.8 kB / 442.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2565, allocations: 3.938 kB / 442.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.2566, allocations: 71.84 kB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.2569, allocations: 50.2 kB / 442.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.26, allocations: 2.39 MB / 445 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.2604, allocations: 0.7519 MB / 445.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.2605, allocations: 37.92 kB / 445.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.2606, allocations: 67.42 kB / 445.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2606, allocations: 0 / 445.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.2954, allocations: 5.653 MB / 451.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.39, allocations: 8.547 kB / 451.5 MB, free: 2.156 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 27.452960481001355]