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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 105.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 195 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 47.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2453, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003802/0.2491, allocations: 2.224 MB / 402.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.2513, allocations: 1.083 MB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003337/0.2517, allocations: 4 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.2522, allocations: 95.5 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004965/0.2528, allocations: 123.3 kB / 403.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.2533, allocations: 149.5 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.2538, allocations: 278.9 kB / 404.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.254, allocations: 88.58 kB / 404.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.2542, allocations: 111.6 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.2545, allocations: 127.5 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.2545, allocations: 20 kB / 404.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001663/0.2547, allocations: 55.97 kB / 404.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.003e-05/0.2548, allocations: 47.84 kB / 404.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.2549, allocations: 127.3 kB / 404.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.2554, allocations: 284.8 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.2554, allocations: 0 / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2554, allocations: 0 / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.2554, allocations: 0 / 405 MB, free: 4.035 MB / 318.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.0008961/0.2563, allocations: 0.5381 MB / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2564, allocations: 11.89 kB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/0.2564, allocations: 54.72 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.2566, allocations: 36.53 kB / 405.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.257, allocations: 252.7 kB / 405.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.257, allocations: 12.38 kB / 405.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.2571, allocations: 31.77 kB / 405.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.2574, allocations: 165.2 kB / 406.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.2574, allocations: 7.984 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.2574, allocations: 8 kB / 406.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2575, allocations: 4 kB / 406.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002471/0.2577, allocations: 115.9 kB / 406.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009096/0.2586, allocations: 0.5623 MB / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.2589, allocations: 173.7 kB / 407 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.2591, allocations: 88.83 kB / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.2591, allocations: 4 kB / 407 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.2594, allocations: 111.3 kB / 407.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.485e-06/0.2594, allocations: 3.938 kB / 407.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004959/0.2599, allocations: 229.7 kB / 407.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.26, allocations: 55.41 kB / 407.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.2602, allocations: 252.9 kB / 407.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.2603, allocations: 29.7 kB / 407.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.204e-05/0.2603, allocations: 140.4 kB / 407.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.301e-05/0.2604, allocations: 70.98 kB / 407.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.9e-05/0.2605, allocations: 41.72 kB / 408 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.2606, allocations: 338.8 kB / 408.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.2608, allocations: 51.97 kB / 408.3 MB, free: 468 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.2609, allocations: 83.41 kB / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.2612, allocations: 146.9 kB / 408.6 MB, free: 216 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2612, allocations: 7.984 kB / 408.6 MB, free: 208 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003735/0.2615, allocations: 209.1 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.2616, allocations: 8 kB / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2616, allocations: 0 / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.2616, allocations: 0 / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.2618, allocations: 51.86 kB / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.2619, allocations: 0 / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.262, allocations: 15.84 kB / 408.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.262, allocations: 16.08 kB / 408.9 MB, free: 15.9 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.0001432/0.2622, allocations: 137.8 kB / 409 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.014e-05/0.2622, allocations: 19.72 kB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.111e-05/0.2623, allocations: 34.11 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.2623, allocations: 7.938 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2623, allocations: 0 / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.2623, allocations: 3.984 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.2626, allocations: 285.4 kB / 409.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2626, allocations: 3.938 kB / 409.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.2628, allocations: 35.98 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2628, allocations: 4 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.2628, allocations: 4 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.2628, allocations: 3.938 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2629, allocations: 4 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004757/0.2633, allocations: 283.3 kB / 409.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.2634, allocations: 100.8 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.2635, allocations: 7.938 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.224e-05/0.2635, allocations: 8.062 kB / 409.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/0.2636, allocations: 15.97 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.2636, allocations: 11.98 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001583/0.2638, allocations: 184.5 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2638, allocations: 0 / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002882/0.2641, allocations: 51.91 kB / 410 MB, free: 14.62 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.nextTimeEventScaled,lossTable.nextTimeEvent) * 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.001535/0.2656, allocations: 1.135 MB / 411.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.266, allocations: 149.8 kB / 411.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.266, allocations: 0 / 411.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.2661, allocations: 71.92 kB / 411.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.2665, allocations: 56.47 kB / 411.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.2693, allocations: 2.343 MB / 413.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.2697, allocations: 0.7479 MB / 414.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.2698, allocations: 33.92 kB / 414.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.2699, allocations: 71.42 kB / 414.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2699, allocations: 0 / 414.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.2938, allocations: 5.345 MB / 420 MB, free: 4.805 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/7.931, allocations: 17.19 kB / 420 MB, free: 4.793 MB / 334.1 MB (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 --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) 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) Reference file matches