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.001966/0.001966, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002057/0.002057, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001605/0.001605, allocations: 51.92 kB / 377.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2361, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00389/0.24, allocations: 2.266 MB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.2422, allocations: 1.256 MB / 434.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.2424, allocations: 7.938 kB / 434.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000404/0.2428, allocations: 91.5 kB / 434.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005331/0.2434, allocations: 167.1 kB / 434.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/0.2437, allocations: 119.6 kB / 435 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004443/0.2442, allocations: 294.8 kB / 435.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.2444, allocations: 69.52 kB / 435.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.2446, allocations: 123.5 kB / 435.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.2449, allocations: 135.4 kB / 435.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.2449, allocations: 19.94 kB / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.2451, allocations: 52 kB / 435.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.2452, allocations: 51.83 kB / 435.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.2453, allocations: 123.3 kB / 435.9 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004431/0.2458, allocations: 292.5 kB / 436.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2458, allocations: 0 / 436.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2458, allocations: 3.938 kB / 436.2 MB, free: 1.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2458, allocations: 0 / 436.2 MB, free: 1.793 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.0009294/0.2467, allocations: 497.2 kB / 436.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.2467, allocations: 12.03 kB / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.396e-05/0.2468, allocations: 50.72 kB / 436.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.247, allocations: 32.75 kB / 436.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.2474, allocations: 206 kB / 436.9 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.2474, allocations: 16.38 kB / 437 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.2474, allocations: 23.94 kB / 437 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.2478, allocations: 161.5 kB / 437.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2478, allocations: 4 kB / 437.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.2478, allocations: 4 kB / 437.1 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.2478, allocations: 8 kB / 437.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.248, allocations: 115.7 kB / 437.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00088/0.2489, allocations: 0.5304 MB / 437.8 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.2492, allocations: 150.5 kB / 437.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.2494, allocations: 87.58 kB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.2494, allocations: 8.328 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.2497, allocations: 107.3 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.2497, allocations: 0 / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005374/0.2502, allocations: 241.4 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.2502, allocations: 55.41 kB / 438.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.2505, allocations: 264.9 kB / 438.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.2505, allocations: 25.7 kB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.2507, allocations: 148.4 kB / 438.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.163e-05/0.2507, allocations: 63.44 kB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.335e-05/0.2508, allocations: 49.66 kB / 439 MB, free: 14.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.251, allocations: 338.8 kB / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.2511, allocations: 47.98 kB / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.2512, allocations: 95.33 kB / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.2515, allocations: 141.6 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2515, allocations: 4 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000362/0.2519, allocations: 206.6 kB / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.2519, allocations: 8 kB / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2519, allocations: 0 / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.2519, allocations: 4 kB / 439.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.2521, allocations: 55.78 kB / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2521, allocations: 0 / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2522, allocations: 19.89 kB / 439.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.2522, allocations: 4 kB / 439.9 MB, free: 13.86 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.0001428/0.2524, allocations: 148.6 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.761e-05/0.2524, allocations: 23.86 kB / 440 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004028/0.2528, allocations: 206.2 kB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.2528, allocations: 11.92 kB / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2528, allocations: 0 / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2528, allocations: 0 / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.2531, allocations: 268.5 kB / 440.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2531, allocations: 3.938 kB / 440.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.2533, allocations: 39.92 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2533, allocations: 0 / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2533, allocations: 8 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.2533, allocations: 7.922 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2533, allocations: 4 kB / 440.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.2538, allocations: 280.9 kB / 440.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.2539, allocations: 27.77 kB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.973e-05/0.2539, allocations: 4 kB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.804e-05/0.254, allocations: 8.062 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.254, allocations: 15.97 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.254, allocations: 4 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002018/0.2542, allocations: 200.5 kB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2542, allocations: 0 / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002803/0.2545, allocations: 55.89 kB / 441.2 MB, free: 12.5 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.002189/0.2567, allocations: 1.12 MB / 442.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003301/0.257, allocations: 141.8 kB / 442.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.257, allocations: 0 / 442.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.2572, allocations: 71.84 kB / 442.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.2575, allocations: 57.31 kB / 442.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.2607, allocations: 2.396 MB / 444.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.2611, allocations: 0.744 MB / 445.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2612, allocations: 25.95 kB / 445.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.2614, allocations: 75.41 kB / 445.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2614, allocations: 3.938 kB / 445.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03594/0.2973, allocations: 5.648 MB / 451.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.2, allocations: 11.42 kB / 451.4 MB, free: 2.312 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 654] Reference file matches [Calling sys.exit(0), Time elapsed: 30.930897803977132]