Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 126.2 kB / 17.84 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002313/0.002313, allocations: 203.8 kB / 20.79 MB, free: 2.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 207.6 MB / 231.2 MB, free: 4.121 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3544/0.3544, allocations: 44.23 MB / 327.3 MB, free: 6.672 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002395/0.002395, allocations: 67.91 kB / 462.9 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3607, allocations: 60.99 MB / 0.5116 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004291/0.365, allocations: 2.629 MB / 0.5142 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.3661, allocations: 0.7036 MB / 0.5149 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.3663, allocations: 8.406 kB / 0.5149 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.3665, allocations: 43.59 kB / 0.5149 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.3666, allocations: 85.31 kB / 0.515 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.3668, allocations: 88.33 kB / 0.5151 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.3672, allocations: 330.6 kB / 0.5154 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.3674, allocations: 68.27 kB / 0.5155 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.3676, allocations: 130.3 kB / 0.5156 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.3678, allocations: 132.4 kB / 0.5157 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.478e-05/0.3678, allocations: 21.38 kB / 0.5157 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.26e-05/0.3679, allocations: 22.69 kB / 0.5157 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.257e-05/0.3679, allocations: 55.86 kB / 0.5158 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.3681, allocations: 149.6 kB / 0.5159 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003641/0.3684, allocations: 303.1 kB / 0.5162 GB, free: 9.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3684, allocations: 3.938 kB / 0.5162 GB, free: 9.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.3684, allocations: 1.938 kB / 0.5162 GB, free: 9.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.3685, allocations: 0 / 0.5162 GB, free: 9.652 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009469/0.3694, allocations: 0.5889 MB / 0.5168 GB, free: 9.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.3695, allocations: 17.08 kB / 0.5168 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.476e-05/0.3695, allocations: 12.02 kB / 0.5168 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.668e-05/0.3695, allocations: 61.42 kB / 0.5169 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.267e-05/0.3696, allocations: 33.12 kB / 0.5169 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.37, allocations: 262.1 kB / 0.5172 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.37, allocations: 19.94 kB / 0.5172 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.3701, allocations: 28.83 kB / 0.5172 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005393/0.3707, allocations: 288.9 kB / 0.5175 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.3707, allocations: 1.375 kB / 0.5175 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.3707, allocations: 10.75 kB / 0.5175 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.3707, allocations: 6.875 kB / 0.5175 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004376/0.3712, allocations: 189 kB / 0.5177 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.3726, allocations: 1.306 MB / 0.519 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.373, allocations: 242.5 kB / 0.5192 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.3731, allocations: 95.39 kB / 0.5193 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.3732, allocations: 4 kB / 0.5193 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.3732, allocations: 42.55 kB / 0.5193 GB, free: 6.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.422e-06/0.3732, allocations: 4 kB / 0.5193 GB, free: 6.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002252/0.3754, allocations: 1.571 MB / 0.5209 GB, free: 4.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.3755, allocations: 136.5 kB / 0.521 GB, free: 4.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.3757, allocations: 228.9 kB / 0.5212 GB, free: 4.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.3757, allocations: 29.7 kB / 0.5213 GB, free: 4.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.3758, allocations: 184.5 kB / 0.5214 GB, free: 4.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.3758, allocations: 123 kB / 0.5216 GB, free: 4.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.701e-05/0.3759, allocations: 62.14 kB / 0.5216 GB, free: 4.184 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.915e-05/0.376, allocations: 346.8 kB / 0.5219 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.3762, allocations: 96.81 kB / 0.522 GB, free: 3.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.3765, allocations: 237.5 kB / 0.5223 GB, free: 3.445 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005106/0.377, allocations: 372.8 kB / 0.5226 GB, free: 3.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.377, allocations: 11.94 kB / 0.5226 GB, free: 3.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006455/0.3777, allocations: 389.2 kB / 0.523 GB, free: 2.621 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3777, allocations: 4 kB / 0.523 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3777, allocations: 8 kB / 0.523 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.3777, allocations: 4 kB / 0.523 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.3781, allocations: 103.8 kB / 0.5231 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.3781, allocations: 11.98 kB / 0.5231 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.3783, allocations: 23.94 kB / 0.5231 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.3783, allocations: 16 kB / 0.5232 GB, free: 2.453 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0001211/0.3785, allocations: 161.7 kB / 0.5233 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.386e-05/0.3785, allocations: 28.09 kB / 0.5233 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.41e-05/0.3786, allocations: 37.69 kB / 0.5234 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3786, allocations: 4 kB / 0.5234 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3786, allocations: 4 kB / 0.5234 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3786, allocations: 3.984 kB / 0.5234 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.3798, allocations: 0.9856 MB / 0.5244 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3798, allocations: 4.438 kB / 0.5244 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003305/0.3802, allocations: 79.95 kB / 0.5244 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.3802, allocations: 7.938 kB / 0.5244 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.3802, allocations: 15.98 kB / 0.5245 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3802, allocations: 0 / 0.5245 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3802, allocations: 4 kB / 0.5245 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007818/0.381, allocations: 0.7174 MB / 0.5252 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.381, allocations: 108.9 kB / 0.5253 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.381, allocations: 11.94 kB / 0.5253 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.3813, allocations: 19.98 kB / 0.5253 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/0.3814, allocations: 27.95 kB / 0.5253 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.3814, allocations: 8 kB / 0.5253 GB, free: 112 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.3815, allocations: 156.5 kB / 0.5255 GB, free: 15.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3815, allocations: 0 / 0.5255 GB, free: 15.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00049/0.382, allocations: 68 kB / 0.5255 GB, free: 15.89 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.001457/0.3835, allocations: 1.282 MB / 0.5268 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006875/0.3842, allocations: 264.1 kB / 0.527 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3842, allocations: 384 / 0.527 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000292/0.3845, allocations: 127.8 kB / 0.5272 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000676/0.3852, allocations: 41.73 kB / 0.5272 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004886/0.39, allocations: 3.511 MB / 0.5306 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.3905, allocations: 0.7681 MB / 0.5314 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001508/0.3906, allocations: 34.95 kB / 0.5314 GB, free: 9.582 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.3908, allocations: 99.39 kB / 0.5315 GB, free: 9.484 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3908, allocations: 0 / 0.5315 GB, free: 9.484 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.4148, allocations: 5.383 MB / 0.5368 GB, free: 4.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.076/9.491, allocations: 8.062 kB / 0.5368 GB, free: 4.094 MB / 398.1 MB " [Timeout remaining time 650] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.780140478978865]