Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002283/0.002283, allocations: 203.7 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 47.92 kB / 377.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2613, allocations: 53.36 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003636/0.2649, allocations: 2.154 MB / 433.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.267, allocations: 1.177 MB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.2671, allocations: 8 kB / 434.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003492/0.2675, allocations: 91.5 kB / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004353/0.2679, allocations: 163 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.2682, allocations: 119.6 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.2685, allocations: 294.8 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.2687, allocations: 65.53 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.2689, allocations: 115.6 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.2691, allocations: 143.4 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/0.2691, allocations: 16 kB / 435.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.2693, allocations: 51.98 kB / 435.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.701e-05/0.2694, allocations: 55.81 kB / 435.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.2695, allocations: 95.55 kB / 435.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003998/0.2699, allocations: 303.1 kB / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2699, allocations: 0 / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2699, allocations: 0 / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2699, allocations: 0 / 435.9 MB, free: 1.781 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.00085/0.2707, allocations: 497.2 kB / 436.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2708, allocations: 12.03 kB / 436.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.709e-05/0.2708, allocations: 50.73 kB / 436.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.271, allocations: 36.73 kB / 436.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.2713, allocations: 202 kB / 436.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.2713, allocations: 12.31 kB / 436.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.2714, allocations: 19.94 kB / 436.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.2717, allocations: 165.5 kB / 436.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2717, allocations: 4 kB / 436.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.2717, allocations: 4 kB / 436.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2717, allocations: 4 kB / 436.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002605/0.272, allocations: 123.7 kB / 437 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008781/0.2729, allocations: 0.4954 MB / 437.5 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.2732, allocations: 158.5 kB / 437.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.2734, allocations: 84.81 kB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.2734, allocations: 4.344 kB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.2737, allocations: 117.9 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.2737, allocations: 0 / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005415/0.2742, allocations: 245.4 kB / 438.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.2743, allocations: 51.41 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.2746, allocations: 276.9 kB / 438.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.2746, allocations: 25.7 kB / 438.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.2747, allocations: 148.4 kB / 438.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.2748, allocations: 79.23 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.2749, allocations: 45.7 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.2751, allocations: 338.8 kB / 439 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2752, allocations: 51.97 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.2753, allocations: 87.41 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.2756, allocations: 147.3 kB / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2756, allocations: 0 / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003757/0.276, allocations: 224.3 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.276, allocations: 4 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.276, allocations: 0 / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.276, allocations: 4 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.2763, allocations: 51.86 kB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.2763, allocations: 7.938 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.2764, allocations: 19.88 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.2764, allocations: 4 kB / 439.6 MB, free: 13.84 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.0001572/0.2765, allocations: 141.8 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/0.2766, allocations: 27.94 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004541/0.277, allocations: 223.6 kB / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.277, allocations: 0 / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.277, allocations: 3.938 kB / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.277, allocations: 0 / 440 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.2773, allocations: 244.6 kB / 440.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2773, allocations: 0 / 440.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.2775, allocations: 35.97 kB / 440.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.2775, allocations: 4 kB / 440.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.2776, allocations: 7.938 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2776, allocations: 3.984 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2776, allocations: 11.94 kB / 440.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005407/0.2781, allocations: 304.1 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.2782, allocations: 27.83 kB / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.2782, allocations: 0 / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.818e-05/0.2783, allocations: 15.92 kB / 440.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.2783, allocations: 7.984 kB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.2784, allocations: 8 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002661/0.2786, allocations: 200.5 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2786, allocations: 4 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.2789, allocations: 63.94 kB / 440.9 MB, free: 12.45 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 (22): * Single equations (assignments): 20 * 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.00236/0.2813, allocations: 1.183 MB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000321/0.2816, allocations: 143.8 kB / 442.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2816, allocations: 0 / 442.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.2817, allocations: 71.91 kB / 442.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.2821, allocations: 59.28 kB / 442.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.2853, allocations: 2.406 MB / 444.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/0.2854, allocations: 146.2 kB / 444.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.2855, allocations: 29.92 kB / 445 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.2857, allocations: 79.41 kB / 445 MB, free: 8.387 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2857, allocations: 4 kB / 445 MB, free: 8.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03562/0.3213, allocations: 6.296 MB / 451.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.81, allocations: 3.984 kB / 451.3 MB, free: 2.16 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/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_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 29.950826476997463]