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.001055/0.001055, allocations: 105.6 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.001057/0.001057, allocations: 195 kB / 18 MB, free: 5.105 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.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 35.94 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2825, allocations: 49.45 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00351/0.286, allocations: 2.229 MB / 402.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.2878, allocations: 1.083 MB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.288, allocations: 7.938 kB / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000344/0.2884, allocations: 87.56 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003366/0.2887, allocations: 119.2 kB / 403.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.2892, allocations: 153.8 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003714/0.2895, allocations: 290.8 kB / 404.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2897, allocations: 84.58 kB / 404.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.2899, allocations: 111.6 kB / 404.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.2901, allocations: 131.5 kB / 404.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.2902, allocations: 24 kB / 404.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.2903, allocations: 47.98 kB / 404.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.537e-05/0.2904, allocations: 55.83 kB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2905, allocations: 119.3 kB / 404.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.2909, allocations: 284.7 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2909, allocations: 0 / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2909, allocations: 3.938 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.2909, allocations: 0 / 405 MB, free: 4.023 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.0008099/0.2917, allocations: 0.5381 MB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.2918, allocations: 12.03 kB / 405.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.108e-05/0.2918, allocations: 46.73 kB / 405.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.292, allocations: 40.58 kB / 405.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003228/0.2923, allocations: 256.7 kB / 405.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.2923, allocations: 12.38 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.2924, allocations: 23.84 kB / 405.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.2927, allocations: 173.1 kB / 406.1 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2927, allocations: 4 kB / 406.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.2928, allocations: 4 kB / 406.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.2928, allocations: 4 kB / 406.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.293, allocations: 115.9 kB / 406.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008313/0.2939, allocations: 0.5585 MB / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.2942, allocations: 174.4 kB / 407 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.2943, allocations: 84.83 kB / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.2944, allocations: 0 / 407 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.2946, allocations: 115.3 kB / 407.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.2946, allocations: 0 / 407.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004931/0.2951, allocations: 233.7 kB / 407.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.2952, allocations: 51.41 kB / 407.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.2954, allocations: 260.9 kB / 407.7 MB, free: 1.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.2954, allocations: 25.7 kB / 407.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.618e-05/0.2955, allocations: 140.4 kB / 407.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.2956, allocations: 67.02 kB / 407.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.317e-05/0.2957, allocations: 41.7 kB / 408 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2958, allocations: 342.8 kB / 408.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.2959, allocations: 47.98 kB / 408.3 MB, free: 472 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.296, allocations: 83.39 kB / 408.4 MB, free: 376 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.2963, allocations: 147.1 kB / 408.6 MB, free: 220 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2963, allocations: 4 kB / 408.6 MB, free: 216 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003488/0.2967, allocations: 209.1 kB / 408.8 MB, free: 0 / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.2967, allocations: 4.047 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2967, allocations: 0 / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.2967, allocations: 7.984 kB / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.297, allocations: 47.86 kB / 408.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.297, allocations: 7.938 kB / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.467e-05/0.2971, allocations: 15.84 kB / 408.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.2971, allocations: 12.09 kB / 408.9 MB, free: 15.91 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.0001229/0.2972, allocations: 137.8 kB / 409 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.2973, allocations: 23.72 kB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.016e-05/0.2974, allocations: 38.11 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2974, allocations: 3.938 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.2974, allocations: 4 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2974, allocations: 0 / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002801/0.2977, allocations: 285.4 kB / 409.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2977, allocations: 0 / 409.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.2979, allocations: 39.92 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2979, allocations: 0 / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.2979, allocations: 8 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2979, allocations: 7.938 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2979, allocations: 0 / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.2984, allocations: 279.5 kB / 409.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.414e-05/0.2985, allocations: 104.8 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.2985, allocations: 7.938 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.682e-05/0.2986, allocations: 8.062 kB / 409.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.2987, allocations: 11.98 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.2987, allocations: 11.98 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.2989, allocations: 184.5 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2989, allocations: 0 / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.2992, allocations: 59.91 kB / 410.1 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.001519/0.3007, allocations: 1.135 MB / 411.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003058/0.301, allocations: 145.1 kB / 411.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.301, allocations: 0 / 411.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.3012, allocations: 71.91 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.0003284/0.3015, allocations: 56.81 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.002833/0.3044, allocations: 2.351 MB / 413.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.3047, allocations: 0.748 MB / 414.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.3049, allocations: 25.95 kB / 414.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.305, allocations: 67.41 kB / 414.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.305, allocations: 0 / 414.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/0.3289, allocations: 5.366 MB / 420 MB, free: 4.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/7.957, allocations: 4 kB / 420 MB, free: 4.785 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