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.001657/0.001656, allocations: 107.4 kB / 17.06 MB, free: 5.82 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.001812/0.001812, allocations: 195.9 kB / 18 MB, free: 4.965 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 51.91 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2645, allocations: 49.43 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003679/0.2682, allocations: 2.226 MB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.2701, allocations: 1.087 MB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.2703, allocations: 4 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003692/0.2707, allocations: 91.5 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003224/0.271, allocations: 123.2 kB / 403.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2714, allocations: 147.6 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.2718, allocations: 286.8 kB / 404.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.272, allocations: 88.58 kB / 404.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.2722, allocations: 111.6 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.2724, allocations: 123.5 kB / 404.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.2724, allocations: 16 kB / 404.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.2726, allocations: 47.98 kB / 404.6 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-05/0.2727, allocations: 63.77 kB / 404.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.2728, allocations: 115.3 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004074/0.2732, allocations: 285.8 kB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2732, allocations: 0 / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2732, allocations: 0 / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.2733, allocations: 0 / 405 MB, free: 4.047 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.0008481/0.2741, allocations: 0.5533 MB / 405.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2742, allocations: 15.91 kB / 405.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.697e-05/0.2742, allocations: 50.73 kB / 405.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.2744, allocations: 32.73 kB / 405.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.2748, allocations: 260.8 kB / 405.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.2748, allocations: 16.38 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/0.2748, allocations: 27.88 kB / 406 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.2752, allocations: 165.2 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.2752, allocations: 3.953 kB / 406.1 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.2752, allocations: 8 kB / 406.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.2753, allocations: 4 kB / 406.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.2755, allocations: 111.9 kB / 406.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009429/0.2765, allocations: 0.5626 MB / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.2768, allocations: 166.5 kB / 407 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.277, allocations: 88.08 kB / 407.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.2771, allocations: 4 kB / 407.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.2773, allocations: 127.6 kB / 407.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.873e-06/0.2774, allocations: 0 / 407.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005388/0.2779, allocations: 220.2 kB / 407.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.278, allocations: 67.34 kB / 407.5 MB, free: 1.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.2782, allocations: 249 kB / 407.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.2783, allocations: 33.7 kB / 407.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.2784, allocations: 140.5 kB / 407.9 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.557e-05/0.2785, allocations: 79.38 kB / 408 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/0.2786, allocations: 37.7 kB / 408 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2787, allocations: 338.8 kB / 408.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.2789, allocations: 51.97 kB / 408.4 MB, free: 460 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.279, allocations: 83.41 kB / 408.5 MB, free: 364 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.2793, allocations: 148.8 kB / 408.6 MB, free: 204 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2793, allocations: 0 / 408.6 MB, free: 204 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000378/0.2797, allocations: 203.5 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2797, allocations: 8 kB / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2797, allocations: 3.938 kB / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.2797, allocations: 4 kB / 408.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.28, allocations: 51.95 kB / 408.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.28, allocations: 0 / 408.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.2801, allocations: 23.84 kB / 408.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.2801, allocations: 4 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.0001475/0.2803, allocations: 145.8 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.2803, allocations: 23.86 kB / 409.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.449e-05/0.2804, allocations: 30.17 kB / 409.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.2804, allocations: 3.938 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2804, allocations: 0 / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.2804, allocations: 4 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003147/0.2808, allocations: 293.4 kB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2808, allocations: 4 kB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.281, allocations: 31.98 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.281, allocations: 0 / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.281, allocations: 7.938 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.744e-06/0.281, allocations: 15.88 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.281, allocations: 3.984 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005253/0.2816, allocations: 284.9 kB / 409.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.2816, allocations: 92.98 kB / 409.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.2817, allocations: 11.94 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.631e-05/0.2818, allocations: 0 / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.722e-05/0.2818, allocations: 19.94 kB / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.2818, allocations: 7.984 kB / 409.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001879/0.282, allocations: 184.5 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.282, allocations: 4 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.2823, allocations: 55.94 kB / 410.1 MB, free: 14.61 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.002176/0.2845, allocations: 1.121 MB / 411.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003378/0.2849, allocations: 146.8 kB / 411.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2849, allocations: 4.188 kB / 411.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.285, allocations: 75.91 kB / 411.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.2854, allocations: 48.3 kB / 411.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.2884, allocations: 2.362 MB / 413.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.2889, allocations: 0.748 MB / 414.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.289, allocations: 21.95 kB / 414.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.2891, allocations: 75.41 kB / 414.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2891, allocations: 4 kB / 414.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02942/0.3185, allocations: 5.285 MB / 420 MB, free: 4.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.231/8.55, allocations: 12 kB / 420 MB, free: 4.836 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_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