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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007993/0.0007993, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007592/0.0007592, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8545/0.8545, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.352e-05/1.517e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002155/0.00217, allocations: 2.13 MB / 320.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.003286, allocations: 1.029 MB / 321.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.241e-05/0.003378, allocations: 4 kB / 321.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.003666, allocations: 95.42 kB / 321.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.003916, allocations: 135 kB / 321.8 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.004167, allocations: 150.6 kB / 321.9 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.00458, allocations: 294.6 kB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.004716, allocations: 60.77 kB / 322.3 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.004847, allocations: 163.6 kB / 322.5 MB, free: 2.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.004969, allocations: 99.77 kB / 322.5 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.004993, allocations: 19.94 kB / 322.6 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.094e-05/0.005084, allocations: 63.91 kB / 322.6 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.847e-05/0.005143, allocations: 55.77 kB / 322.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.119e-05/0.005204, allocations: 75.77 kB / 322.8 MB, free: 2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.005455, allocations: 291.1 kB / 323 MB, free: 1.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.005457, allocations: 0 / 323 MB, free: 1.715 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.005458, allocations: 0 / 323 MB, free: 1.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.005462, allocations: 0 / 323 MB, free: 1.715 MB / 282.7 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.0005074/0.005969, allocations: 488.7 kB / 323.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.006, allocations: 8.922 kB / 323.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.006037, allocations: 50.73 kB / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.15e-05/0.006119, allocations: 36.69 kB / 323.6 MB, free: 1.109 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.006322, allocations: 190.3 kB / 323.8 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.006339, allocations: 20.36 kB / 323.8 MB, free: 0.875 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.006364, allocations: 12.38 kB / 323.8 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.006568, allocations: 173.5 kB / 324 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.006578, allocations: 0 / 324 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.006592, allocations: 8 kB / 324 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.006597, allocations: 8 kB / 324 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.006765, allocations: 115.9 kB / 324.1 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005419/0.007307, allocations: 0.5029 MB / 324.6 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.007517, allocations: 150.5 kB / 324.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.969e-05/0.007607, allocations: 84.81 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.007621, allocations: 4 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/0.007758, allocations: 123.6 kB / 325 MB, free: 15.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.223e-06/0.007759, allocations: 0 / 325 MB, free: 15.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003107/0.00807, allocations: 241.4 kB / 325.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.619e-05/0.008096, allocations: 51.41 kB / 325.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.008259, allocations: 261.8 kB / 325.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.008274, allocations: 33.64 kB / 325.6 MB, free: 15.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.479e-05/0.008339, allocations: 144.4 kB / 325.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.008375, allocations: 67.44 kB / 325.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.008418, allocations: 41.7 kB / 325.8 MB, free: 14.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.008495, allocations: 338.8 kB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.779e-05/0.008563, allocations: 55.98 kB / 326.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.27e-05/0.008645, allocations: 91.98 kB / 326.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.008799, allocations: 162.2 kB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.008801, allocations: 0 / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002019/0.009003, allocations: 201.4 kB / 326.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.009014, allocations: 8 kB / 326.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.009019, allocations: 4.094 kB / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.00903, allocations: 4 kB / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.009152, allocations: 47.91 kB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.009157, allocations: 0 / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.636e-05/0.009213, allocations: 27.77 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.009222, allocations: 4 kB / 326.7 MB, free: 13.81 MB / 298.7 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 8.435e-05/0.009306, allocations: 146.2 kB / 326.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.009326, allocations: 23.86 kB / 326.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.009564, allocations: 214.9 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.009566, allocations: 8 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.009569, allocations: 0 / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.009574, allocations: 3.984 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.009734, allocations: 252.5 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.009735, allocations: 0 / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.009836, allocations: 39.92 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.009838, allocations: 3.984 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.009849, allocations: 4 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.009851, allocations: 4 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.009851, allocations: 0 / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003012/0.01015, allocations: 304.8 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.64e-05/0.01018, allocations: 19.89 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.0102, allocations: 4 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.856e-05/0.01024, allocations: 11.98 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.01027, allocations: 11.92 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.01028, allocations: 11.98 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.01039, allocations: 197.2 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01039, allocations: 3.938 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001702/0.01056, allocations: 63.88 kB / 328 MB, free: 12.43 MB / 298.7 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.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0009838/0.01154, allocations: 1.172 MB / 329.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001866/0.01173, allocations: 143.8 kB / 329.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.01173, allocations: 4 kB / 329.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.01193, allocations: 71.91 kB / 329.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.01215, allocations: 52.56 kB / 329.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.01385, allocations: 2.365 MB / 331.8 MB, free: 8.688 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.689e-05/0.01393, allocations: 133.2 kB / 332 MB, free: 8.539 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.239e-05/0.01399, allocations: 29.89 kB / 332 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.596e-05/0.01406, allocations: 80.41 kB / 332.1 MB, free: 8.43 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01406, allocations: 4 kB / 332.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01709/0.03115, allocations: 6.284 MB / 338.4 MB, free: 2.211 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.052/7.083, allocations: 7.328 kB / 338.4 MB, free: 2.207 MB / 298.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] "" Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T [Calling sys.exit(0), Time elapsed: 22.424793044105172]