Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 225.7 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 47.92 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.229, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003552/0.2325, allocations: 2.276 MB / 425.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.2343, allocations: 1.103 MB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.791e-05/0.2344, allocations: 0 / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.2347, allocations: 95.5 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002934/0.235, allocations: 119.2 kB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.2353, allocations: 151.5 kB / 427.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.2357, allocations: 290.8 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.2358, allocations: 64.8 kB / 427.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.236, allocations: 111.6 kB / 427.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.2362, allocations: 131.4 kB / 427.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.2362, allocations: 20 kB / 427.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.2363, allocations: 47.98 kB / 427.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.972e-05/0.2364, allocations: 55.77 kB / 427.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2365, allocations: 123.3 kB / 428 MB, free: 10 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.2369, allocations: 283.7 kB / 428.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.2369, allocations: 4 kB / 428.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2369, allocations: 0 / 428.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2369, allocations: 4 kB / 428.2 MB, free: 9.719 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.0007399/0.2377, allocations: 489.4 kB / 428.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2377, allocations: 8.031 kB / 428.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.929e-05/0.2377, allocations: 4.188 kB / 428.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.289e-05/0.2378, allocations: 50.73 kB / 428.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.2379, allocations: 36.73 kB / 428.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.2382, allocations: 191.1 kB / 429 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.2382, allocations: 28.05 kB / 429 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.2383, allocations: 19.98 kB / 429.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.2386, allocations: 157.4 kB / 429.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.2386, allocations: 3.953 kB / 429.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.2386, allocations: 4 kB / 429.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2386, allocations: 4 kB / 429.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.2389, allocations: 123.9 kB / 429.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008294/0.2397, allocations: 0.5226 MB / 429.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003056/0.24, allocations: 150.5 kB / 430 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.2401, allocations: 80.83 kB / 430.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.2402, allocations: 0 / 430.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.2404, allocations: 126.7 kB / 430.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.223e-06/0.2404, allocations: 0 / 430.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.000484/0.2409, allocations: 225.5 kB / 430.4 MB, free: 7.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.2409, allocations: 63.28 kB / 430.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.2412, allocations: 252.9 kB / 430.7 MB, free: 7.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.2412, allocations: 33.7 kB / 430.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.2413, allocations: 152.3 kB / 430.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.968e-05/0.2414, allocations: 67.42 kB / 431 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.745e-05/0.2414, allocations: 37.7 kB / 431 MB, free: 6.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.2416, allocations: 338.8 kB / 431.4 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.2417, allocations: 51.97 kB / 431.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.2419, allocations: 87.34 kB / 431.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.2421, allocations: 142.6 kB / 431.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2421, allocations: 0 / 431.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003538/0.2425, allocations: 205.3 kB / 431.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2425, allocations: 4.094 kB / 431.8 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2425, allocations: 7.984 kB / 431.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2425, allocations: 7.938 kB / 431.8 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.2427, allocations: 47.92 kB / 431.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.2427, allocations: 4 kB / 431.9 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.096e-05/0.2428, allocations: 15.84 kB / 431.9 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.2428, allocations: 8 kB / 431.9 MB, free: 5.816 MB / 334.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.0001377/0.243, allocations: 145.2 kB / 432.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.8e-05/0.243, allocations: 23.86 kB / 432.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004101/0.2434, allocations: 218.5 kB / 432.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2434, allocations: 4 kB / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2434, allocations: 0 / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2434, allocations: 0 / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002931/0.2437, allocations: 252.6 kB / 432.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2437, allocations: 0 / 432.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.2439, allocations: 43.91 kB / 432.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2439, allocations: 0 / 432.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.2439, allocations: 3.938 kB / 432.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2439, allocations: 4 kB / 432.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2439, allocations: 4 kB / 432.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004927/0.2444, allocations: 276.9 kB / 432.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.2445, allocations: 35.73 kB / 432.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.2445, allocations: 4 kB / 432.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.84e-05/0.2446, allocations: 8 kB / 432.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.2446, allocations: 11.97 kB / 432.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.2446, allocations: 4 kB / 432.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.2448, allocations: 188.5 kB / 433.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2448, allocations: 3.938 kB / 433.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.2451, allocations: 63.88 kB / 433.2 MB, free: 4.473 MB / 334.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.002093/0.2472, allocations: 1.124 MB / 434.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000304/0.2475, allocations: 143.8 kB / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2475, allocations: 0 / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.2476, allocations: 63.92 kB / 434.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.248, allocations: 52.5 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.2509, allocations: 2.384 MB / 437 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.2513, allocations: 0.748 MB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.2514, allocations: 25.94 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.2516, allocations: 71.42 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2516, allocations: 3.938 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.2801, allocations: 5.599 MB / 443.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.67, allocations: 4.062 kB / 443.4 MB, free: 10.38 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 651] Reference file matches [Calling sys.exit(0), Time elapsed: 40.249213968985714]