Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_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.001508/0.001508, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.002061/0.002061, allocations: 188.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 51.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.0818, allocations: 46.63 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003432/0.08527, allocations: 2.22 MB / 376.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.08683, allocations: 0.9632 MB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.08698, allocations: 4 kB / 377.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003528/0.08736, allocations: 95.5 kB / 377.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.0877, allocations: 119.3 kB / 378 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.08807, allocations: 139.6 kB / 378.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003433/0.08843, allocations: 278.8 kB / 378.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.08863, allocations: 92.55 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.08885, allocations: 115.6 kB / 378.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.08907, allocations: 123.5 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.08913, allocations: 20 kB / 378.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.08929, allocations: 47.94 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.249e-05/0.08938, allocations: 55.83 kB / 378.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.08952, allocations: 119.3 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.09002, allocations: 287.4 kB / 379.3 MB, free: 412 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.09004, allocations: 0 / 379.3 MB, free: 412 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.09005, allocations: 0 / 379.3 MB, free: 412 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.09007, allocations: 0 / 379.3 MB, free: 412 kB / 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.1672/0.2573, allocations: 0.5426 MB / 379.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.2574, allocations: 10.62 kB / 379.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.2574, allocations: 49.91 kB / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.2576, allocations: 29.44 kB / 379.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.2579, allocations: 244.6 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.258, allocations: 17.8 kB / 380.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.258, allocations: 15.81 kB / 380.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.2583, allocations: 166.4 kB / 380.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.2583, allocations: 6.078 kB / 380.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2584, allocations: 8.156 kB / 380.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2584, allocations: 3.938 kB / 380.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002345/0.2586, allocations: 114.9 kB / 380.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007821/0.2594, allocations: 0.5683 MB / 381 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.2597, allocations: 163.2 kB / 381.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.2598, allocations: 84.84 kB / 381.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.2599, allocations: 11.03 kB / 381.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002087/0.2601, allocations: 111 kB / 381.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.304e-06/0.2601, allocations: 0 / 381.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004569/0.2606, allocations: 233.2 kB / 381.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.2606, allocations: 52.78 kB / 381.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/0.2609, allocations: 249.2 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.2609, allocations: 35.19 kB / 382 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.065e-05/0.261, allocations: 148.8 kB / 382.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.109e-05/0.2611, allocations: 70.17 kB / 382.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/0.2611, allocations: 42.61 kB / 382.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.66e-05/0.2612, allocations: 340.3 kB / 382.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.2613, allocations: 50.14 kB / 382.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2614, allocations: 90.55 kB / 382.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.2617, allocations: 153 kB / 382.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2617, allocations: 5.25 kB / 382.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003751/0.2621, allocations: 200.9 kB / 383 MB, free: 11.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2621, allocations: 5.469 kB / 383 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2621, allocations: 1.922 kB / 383 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2621, allocations: 3.656 kB / 383 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.2623, allocations: 50.44 kB / 383.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2624, allocations: 2.281 kB / 383.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.2625, allocations: 22.06 kB / 383.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.2625, allocations: 10 kB / 383.1 MB, free: 11.26 MB / 318.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 9.597e-05/0.2626, allocations: 150.7 kB / 383.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.2626, allocations: 24.56 kB / 383.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.542e-05/0.2627, allocations: 28.28 kB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2627, allocations: 4.734 kB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2627, allocations: 0 / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2627, allocations: 6.953 kB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.263, allocations: 289.2 kB / 383.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.263, allocations: 0.5312 kB / 383.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.2631, allocations: 35.34 kB / 383.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2632, allocations: 1.062 kB / 383.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2632, allocations: 6.156 kB / 383.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2632, allocations: 5.156 kB / 383.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.2632, allocations: 0.6562 kB / 383.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004282/0.2636, allocations: 283.6 kB / 383.9 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.2637, allocations: 102.9 kB / 384 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.2637, allocations: 3.344 kB / 384.1 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.527e-05/0.2638, allocations: 9.453 kB / 384.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.2638, allocations: 14.88 kB / 384.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.2639, allocations: 13.33 kB / 384.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.264, allocations: 187.3 kB / 384.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.264, allocations: 1.312 kB / 384.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.2643, allocations: 54.47 kB / 384.3 MB, free: 10.45 MB / 318.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.001287/0.2656, allocations: 1.113 MB / 385.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000295/0.2659, allocations: 146.3 kB / 385.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2659, allocations: 0 / 385.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.266, allocations: 77.7 kB / 385.7 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.2664, allocations: 45.58 kB / 385.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.2687, allocations: 2.378 MB / 388.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.2689, allocations: 0.7435 MB / 388.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.269, allocations: 33.66 kB / 388.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2691, allocations: 71.42 kB / 388.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2692, allocations: 1.094 kB / 388.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.2929, allocations: 5.355 MB / 394.3 MB, free: 6.051 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.354/8.647, allocations: 12.98 kB / 394.3 MB, free: 6.039 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches