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.001684/0.001684, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001376/0.001376, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.405/1.405, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001597/0.001597, allocations: 43.92 kB / 370.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2632, allocations: 52.19 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00382/0.267, allocations: 2.27 MB / 424.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.2689, allocations: 1.099 MB / 426 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.269, allocations: 7.938 kB / 426 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.2693, allocations: 91.56 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003172/0.2697, allocations: 123.2 kB / 426.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.27, allocations: 151.6 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003672/0.2704, allocations: 286.8 kB / 426.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.2706, allocations: 68.78 kB / 426.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.2708, allocations: 111.6 kB / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.271, allocations: 127.5 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.271, allocations: 20 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.2711, allocations: 47.98 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-05/0.2712, allocations: 63.7 kB / 427.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.2713, allocations: 115.4 kB / 427.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.2717, allocations: 283.2 kB / 427.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2717, allocations: 7.938 kB / 427.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2717, allocations: 0 / 427.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.669e-06/0.2718, allocations: 0 / 427.5 MB, free: 9.77 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.000813/0.2726, allocations: 489.4 kB / 427.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.2726, allocations: 12.03 kB / 427.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.441e-05/0.2727, allocations: 54.67 kB / 428 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.2728, allocations: 36.73 kB / 428 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003666/0.2732, allocations: 191.1 kB / 428.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.2732, allocations: 20.36 kB / 428.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.2732, allocations: 15.94 kB / 428.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.2736, allocations: 161.4 kB / 428.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.2736, allocations: 3.953 kB / 428.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.2736, allocations: 4 kB / 428.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.2736, allocations: 4 kB / 428.4 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.2739, allocations: 123.9 kB / 428.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008942/0.2748, allocations: 0.5265 MB / 429.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.2751, allocations: 150.5 kB / 429.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.2753, allocations: 76.83 kB / 429.3 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.2753, allocations: 4 kB / 429.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.2755, allocations: 123.6 kB / 429.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.713e-06/0.2755, allocations: 0 / 429.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005037/0.276, allocations: 224.1 kB / 429.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.2761, allocations: 59.36 kB / 429.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.2764, allocations: 252.9 kB / 429.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.2764, allocations: 33.7 kB / 430 MB, free: 7.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.2765, allocations: 140.4 kB / 430.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.396e-05/0.2766, allocations: 79.36 kB / 430.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.569e-05/0.2766, allocations: 37.7 kB / 430.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2768, allocations: 342.8 kB / 430.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.2769, allocations: 47.92 kB / 430.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.2771, allocations: 91.39 kB / 430.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.2773, allocations: 141 kB / 430.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2773, allocations: 0 / 430.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003644/0.2777, allocations: 203.3 kB / 431 MB, free: 5.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.2777, allocations: 12.09 kB / 431 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2777, allocations: 0 / 431 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.2777, allocations: 7.984 kB / 431.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.278, allocations: 47.86 kB / 431.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.278, allocations: 0 / 431.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.2781, allocations: 23.84 kB / 431.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.2781, allocations: 12 kB / 431.1 MB, free: 5.867 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.000152/0.2782, allocations: 141.8 kB / 431.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.2783, allocations: 27.8 kB / 431.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004195/0.2787, allocations: 211.6 kB / 431.5 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.2787, allocations: 7.938 kB / 431.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2787, allocations: 0 / 431.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2787, allocations: 0 / 431.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000289/0.279, allocations: 244.6 kB / 431.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.279, allocations: 0 / 431.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.2792, allocations: 43.91 kB / 431.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.2792, allocations: 4 kB / 431.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2792, allocations: 0 / 431.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.2792, allocations: 3.938 kB / 431.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2792, allocations: 8 kB / 431.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004957/0.2797, allocations: 280.3 kB / 432.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.2797, allocations: 27.75 kB / 432.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.2798, allocations: 8 kB / 432.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.064e-05/0.2799, allocations: 4 kB / 432.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.2799, allocations: 19.91 kB / 432.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.2799, allocations: 4 kB / 432.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.2801, allocations: 188.5 kB / 432.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2801, allocations: 0 / 432.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000281/0.2804, allocations: 63.83 kB / 432.4 MB, free: 4.527 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.nextTimeEvent,lossTable.nextTimeEventScaled) * 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.002251/0.2827, allocations: 1.132 MB / 433.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003279/0.283, allocations: 143 kB / 433.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.283, allocations: 0 / 433.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.2831, allocations: 67.91 kB / 433.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.2835, allocations: 40.64 kB / 433.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.2865, allocations: 2.372 MB / 436.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.2869, allocations: 0.748 MB / 436.9 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.287, allocations: 29.94 kB / 436.9 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.2871, allocations: 67.5 kB / 437 MB, free: 15.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2871, allocations: 0 / 437 MB, free: 15.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.3214, allocations: 5.584 MB / 442.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.45, allocations: 13.56 kB / 442.6 MB, free: 10.44 MB / 350.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 27.82673917899956]