Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001186/0.001186, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 55.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2385, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003302/0.2418, allocations: 2.262 MB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.2438, allocations: 1.22 MB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.244, allocations: 7.938 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003386/0.2443, allocations: 83.56 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000445/0.2448, allocations: 163 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.2451, allocations: 123.6 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000341/0.2455, allocations: 294.8 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.2457, allocations: 96.55 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.2459, allocations: 107.6 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.246, allocations: 131.5 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.2461, allocations: 20 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.2462, allocations: 51.97 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.26e-05/0.2463, allocations: 59.78 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2465, allocations: 111.4 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.2468, allocations: 293.8 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2469, allocations: 0 / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2469, allocations: 0 / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.2469, allocations: 4 kB / 413.7 MB, free: 12.54 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.0008114/0.2477, allocations: 0.5686 MB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2478, allocations: 11.97 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.2478, allocations: 50.73 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.248, allocations: 28.75 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.2484, allocations: 263.9 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.2484, allocations: 12.38 kB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.2484, allocations: 19.94 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000315/0.2488, allocations: 153.6 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.2488, allocations: 3.984 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.2488, allocations: 12 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.2488, allocations: 4 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.2491, allocations: 115.7 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009374/0.25, allocations: 0.5664 MB / 415.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/0.2504, allocations: 162.5 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002374/0.2506, allocations: 91.41 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.2507, allocations: 4 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.2509, allocations: 115.2 kB / 415.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 4.429e-06/0.251, allocations: 3.984 kB / 415.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005649/0.2515, allocations: 236.2 kB / 416.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.2516, allocations: 55.41 kB / 416.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002832/0.2519, allocations: 261 kB / 416.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.2519, allocations: 29.7 kB / 416.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.252, allocations: 160.3 kB / 416.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.741e-05/0.2521, allocations: 67.38 kB / 416.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/0.2522, allocations: 45.66 kB / 416.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.2523, allocations: 342.8 kB / 417.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.2524, allocations: 47.97 kB / 417.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.2526, allocations: 91.34 kB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.2528, allocations: 143.4 kB / 417.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2529, allocations: 0 / 417.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003527/0.2532, allocations: 205.4 kB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.2532, allocations: 8 kB / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2533, allocations: 0 / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2533, allocations: 4 kB / 417.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000216/0.2535, allocations: 51.86 kB / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.2535, allocations: 0 / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.2536, allocations: 19.89 kB / 417.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.2536, allocations: 7.984 kB / 417.6 MB, free: 8.379 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.000145/0.2538, allocations: 153.8 kB / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.993e-05/0.2538, allocations: 23.86 kB / 417.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.908e-05/0.2539, allocations: 30.17 kB / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2539, allocations: 3.938 kB / 417.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.2539, allocations: 0 / 417.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.2539, allocations: 3.984 kB / 417.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.2543, allocations: 289.4 kB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2543, allocations: 0 / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.2545, allocations: 31.98 kB / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2545, allocations: 0 / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.2545, allocations: 12 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.2545, allocations: 11.86 kB / 418.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2545, allocations: 0 / 418.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004943/0.255, allocations: 284.9 kB / 418.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.639e-05/0.2551, allocations: 89.02 kB / 418.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.2551, allocations: 3.938 kB / 418.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.103e-05/0.2552, allocations: 15.92 kB / 418.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.05e-05/0.2553, allocations: 24 kB / 418.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.2553, allocations: 4 kB / 418.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.2555, allocations: 192.5 kB / 418.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2555, allocations: 3.938 kB / 418.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.2558, allocations: 55.94 kB / 418.8 MB, free: 7.074 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.001577/0.2574, allocations: 1.13 MB / 420 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003816/0.2578, allocations: 139.8 kB / 420.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2578, allocations: 0 / 420.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.2579, allocations: 75.91 kB / 420.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.2583, allocations: 42.91 kB / 420.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.2614, allocations: 2.4 MB / 422.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.2618, allocations: 0.744 MB / 423.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.2619, allocations: 29.94 kB / 423.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.2621, allocations: 79.34 kB / 423.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2621, allocations: 0 / 423.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.2896, allocations: 5.37 MB / 428.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.649/7.939, allocations: 4.156 kB / 428.8 MB, free: 13.16 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[1440025]=7200.000000 File[98317]=1024.060000 " Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T