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.001625/0.001625, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.00222/0.00222, allocations: 212.8 kB / 22.99 MB, free: 4.977 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.442/1.442, allocations: 207.7 MB / 233.8 MB, free: 9.797 MB / 190.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.2341/0.2341, allocations: 44.27 MB / 330.4 MB, free: 9.293 MB / 270.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",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.002347/0.002347, allocations: 70.72 kB / 467.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1191, allocations: 61.04 MB / 0.5161 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004531/0.1237, allocations: 2.463 MB / 0.5185 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.125, allocations: 0.6632 MB / 0.5192 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1251, allocations: 11.94 kB / 0.5192 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.1253, allocations: 47.52 kB / 0.5192 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.1255, allocations: 83.2 kB / 0.5193 GB, free: 3.898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.1258, allocations: 83.88 kB / 0.5194 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004151/0.1262, allocations: 342.5 kB / 0.5197 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.1264, allocations: 61.92 kB / 0.5198 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1266, allocations: 135.5 kB / 0.5199 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.1267, allocations: 115.3 kB / 0.52 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.1268, allocations: 24 kB / 0.52 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.1268, allocations: 20 kB / 0.5201 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.901e-05/0.1269, allocations: 55.83 kB / 0.5201 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.1271, allocations: 115.4 kB / 0.5202 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.1274, allocations: 306.6 kB / 0.5205 GB, free: 2.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1274, allocations: 0 / 0.5205 GB, free: 2.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1274, allocations: 3.938 kB / 0.5205 GB, free: 2.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1274, allocations: 4 kB / 0.5205 GB, free: 2.652 MB / 398.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.0009421/0.1284, allocations: 0.5168 MB / 0.521 GB, free: 2.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.1284, allocations: 8.031 kB / 0.521 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.551e-05/0.1285, allocations: 54.73 kB / 0.5211 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.999e-05/0.1286, allocations: 36.75 kB / 0.5211 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.129, allocations: 205.9 kB / 0.5213 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.129, allocations: 20.88 kB / 0.5213 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.386e-05/0.1291, allocations: 32.33 kB / 0.5214 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.1296, allocations: 281.3 kB / 0.5216 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.1296, allocations: 7.938 kB / 0.5217 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.1296, allocations: 12 kB / 0.5217 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1296, allocations: 4 kB / 0.5217 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.1301, allocations: 191.7 kB / 0.5218 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.1318, allocations: 1.192 MB / 0.523 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/0.1323, allocations: 242.3 kB / 0.5232 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.1325, allocations: 95.39 kB / 0.5233 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.1325, allocations: 4.188 kB / 0.5233 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.1326, allocations: 46.44 kB / 0.5234 GB, free: 15.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.1326, allocations: 0 / 0.5234 GB, free: 15.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002586/0.1352, allocations: 1.197 MB / 0.5246 GB, free: 14.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/0.1352, allocations: 133.7 kB / 0.5247 GB, free: 14.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.1355, allocations: 229 kB / 0.5249 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.1355, allocations: 33.7 kB / 0.5249 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.1357, allocations: 180.5 kB / 0.5251 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.1358, allocations: 123 kB / 0.5252 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1359, allocations: 70.08 kB / 0.5253 GB, free: 13.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1361, allocations: 338.8 kB / 0.5256 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.1363, allocations: 100.8 kB / 0.5257 GB, free: 12.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003721/0.1367, allocations: 241.4 kB / 0.5259 GB, free: 12.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.1374, allocations: 376.7 kB / 0.5263 GB, free: 12.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1374, allocations: 0 / 0.5263 GB, free: 12.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008136/0.1382, allocations: 400.8 kB / 0.5267 GB, free: 11.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1382, allocations: 8 kB / 0.5267 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1382, allocations: 4 kB / 0.5267 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.1382, allocations: 8.719 kB / 0.5267 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.1386, allocations: 103.9 kB / 0.5268 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.1387, allocations: 7.938 kB / 0.5268 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.1389, allocations: 27.98 kB / 0.5268 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.1389, allocations: 16 kB / 0.5268 GB, free: 11.64 MB / 414.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.0001945/0.1391, allocations: 161.6 kB / 0.527 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1392, allocations: 28.05 kB / 0.527 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.594e-05/0.1393, allocations: 41.69 kB / 0.5271 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1393, allocations: 4 kB / 0.5271 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1393, allocations: 4 kB / 0.5271 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.1393, allocations: 4 kB / 0.5271 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.1409, allocations: 0.9068 MB / 0.528 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.1409, allocations: 8.047 kB / 0.528 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/0.1413, allocations: 80.17 kB / 0.528 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1413, allocations: 0 / 0.528 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.1413, allocations: 11.94 kB / 0.5281 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.1413, allocations: 7.938 kB / 0.5281 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.1413, allocations: 7.922 kB / 0.5281 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.1424, allocations: 0.7251 MB / 0.5288 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.052e-05/0.1424, allocations: 35.8 kB / 0.5288 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.1425, allocations: 15.88 kB / 0.5288 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.1427, allocations: 19.98 kB / 0.5289 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.455e-05/0.1428, allocations: 23.95 kB / 0.5289 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.1428, allocations: 8 kB / 0.5289 GB, free: 9.457 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.143, allocations: 160.5 kB / 0.529 GB, free: 9.301 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.143, allocations: 4 kB / 0.529 GB, free: 9.297 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000473/0.1435, allocations: 64 kB / 0.5291 GB, free: 9.234 MB / 414.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.001406/0.1449, allocations: 1.266 MB / 0.5303 GB, free: 7.934 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006642/0.1455, allocations: 267.9 kB / 0.5306 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1455, allocations: 0 / 0.5306 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.1458, allocations: 132.8 kB / 0.5307 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.1465, allocations: 41.33 kB / 0.5308 GB, free: 7.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004878/0.1514, allocations: 3.501 MB / 0.5342 GB, free: 3.777 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.1516, allocations: 172 kB / 0.5343 GB, free: 3.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.1517, allocations: 34.95 kB / 0.5344 GB, free: 3.555 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.1519, allocations: 91.41 kB / 0.5345 GB, free: 3.465 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1519, allocations: 0 / 0.5345 GB, free: 3.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2535/0.4053, allocations: 5.954 MB / 0.5403 GB, free: 28.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.82, allocations: 2.406 kB / 0.5403 GB, free: 28.44 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.831295462325215]