Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.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.001804/0.001804, allocations: 93.92 kB / 20.48 MB, free: 1.367 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.002354/0.002354, allocations: 215.7 kB / 23.78 MB, free: 4.516 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.432/1.432, allocations: 207.7 MB / 234.6 MB, free: 9.785 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.22/0.22, allocations: 44.27 MB / 331.1 MB, free: 9.301 MB / 270.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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",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.002179/0.002179, allocations: 67.91 kB / 468.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1203, allocations: 61.04 MB / 0.5169 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003811/0.1241, allocations: 2.243 MB / 0.5191 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.1263, allocations: 0.9523 MB / 0.52 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.1264, allocations: 11.88 kB / 0.52 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004698/0.1269, allocations: 123.2 kB / 0.5202 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.1272, allocations: 111.3 kB / 0.5203 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006751/0.1279, allocations: 287.5 kB / 0.5205 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008007/0.1287, allocations: 0.7328 MB / 0.5213 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.1288, allocations: 49.25 kB / 0.5213 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003254/0.1291, allocations: 291.2 kB / 0.5216 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004689/0.1296, allocations: 358.6 kB / 0.5219 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.1297, allocations: 64 kB / 0.522 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.1298, allocations: 60 kB / 0.522 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002376/0.13, allocations: 211.3 kB / 0.5222 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.1303, allocations: 207 kB / 0.5224 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.131, allocations: 0.5759 MB / 0.523 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.131, allocations: 0 / 0.523 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.131, allocations: 0 / 0.523 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.131, allocations: 0 / 0.523 GB, free: 0.8984 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002527/0.1335, allocations: 0.887 MB / 0.5239 GB, free: 15.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1336, allocations: 8.031 kB / 0.5239 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.605e-05/0.1336, allocations: 12.78 kB / 0.5239 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.1337, allocations: 86.72 kB / 0.524 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.1338, allocations: 60.66 kB / 0.524 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006319/0.1345, allocations: 317.1 kB / 0.5243 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006231/0.1351, allocations: 0.6747 MB / 0.525 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1352, allocations: 52.06 kB / 0.525 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.1374, allocations: 0.8163 MB / 0.5258 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.1374, allocations: 3.938 kB / 0.5258 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/0.1375, allocations: 16 kB / 0.5259 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.1375, allocations: 12 kB / 0.5259 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00371/0.1412, allocations: 1.223 MB / 0.5271 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003067/0.1443, allocations: 1.914 MB / 0.5289 GB, free: 10.51 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002882/0.1471, allocations: 0.7443 MB / 0.5297 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.1487, allocations: 471.2 kB / 0.5301 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.487e-05/0.1488, allocations: 11.94 kB / 0.5301 GB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.1489, allocations: 46.5 kB / 0.5302 GB, free: 9.219 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.026e-06/0.1489, allocations: 0 / 0.5302 GB, free: 9.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.3074/0.4562, allocations: 15.51 MB / 0.5453 GB, free: 28.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.4563, allocations: 94.64 kB / 0.5454 GB, free: 28.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004893/0.4568, allocations: 411.3 kB / 0.5458 GB, free: 27.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001496/0.4569, allocations: 48.95 kB / 0.5458 GB, free: 27.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.457, allocations: 222.5 kB / 0.5461 GB, free: 27.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003417/0.4574, allocations: 424.1 kB / 0.5465 GB, free: 27.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005986/0.458, allocations: 202.5 kB / 0.5467 GB, free: 27.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.4581, allocations: 369.6 kB / 0.547 GB, free: 26.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003464/0.4615, allocations: 1.356 MB / 0.5483 GB, free: 26.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003673/0.4652, allocations: 1.504 MB / 0.5498 GB, free: 25.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006377/0.4716, allocations: 2.46 MB / 0.5522 GB, free: 24.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/0.4716, allocations: 1.703 kB / 0.5522 GB, free: 24.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.007487/0.4791, allocations: 2.849 MB / 0.555 GB, free: 23.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.4791, allocations: 11.09 kB / 0.555 GB, free: 23.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4791, allocations: 7.906 kB / 0.555 GB, free: 23.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.446e-05/0.4792, allocations: 12.3 kB / 0.555 GB, free: 23.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/0.482, allocations: 402.8 kB / 0.5554 GB, free: 23.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.636e-05/0.482, allocations: 13.42 kB / 0.5554 GB, free: 23.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/0.4841, allocations: 220.5 kB / 0.5556 GB, free: 23.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.4843, allocations: 44.95 kB / 0.5557 GB, free: 23.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.000486/0.4847, allocations: 233.3 kB / 0.5559 GB, free: 23.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.485, allocations: 66.48 kB / 0.5559 GB, free: 23.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002179/0.4852, allocations: 116.6 kB / 0.5561 GB, free: 23.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.4852, allocations: 11.91 kB / 0.5561 GB, free: 23.22 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/0.4852, allocations: 1.906 kB / 0.5561 GB, free: 23.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.4852, allocations: 9.656 kB / 0.5561 GB, free: 23.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.4964, allocations: 4.86 MB / 0.5608 GB, free: 20.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.567e-05/0.4965, allocations: 20.78 kB / 0.5608 GB, free: 20.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/0.4979, allocations: 361.4 kB / 0.5612 GB, free: 20.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.724e-05/0.498, allocations: 28.7 kB / 0.5612 GB, free: 20.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-05/0.4981, allocations: 47.22 kB / 0.5613 GB, free: 20.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.571e-05/0.4981, allocations: 51.98 kB / 0.5613 GB, free: 20.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.171e-05/0.4981, allocations: 32.88 kB / 0.5613 GB, free: 20.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006969/0.5051, allocations: 3.122 MB / 0.5644 GB, free: 19.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005102/0.5056, allocations: 171.6 kB / 0.5646 GB, free: 19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.5058, allocations: 56.58 kB / 0.5646 GB, free: 18.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.5071, allocations: 196.6 kB / 0.5648 GB, free: 18.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004488/0.5075, allocations: 222.3 kB / 0.565 GB, free: 18.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.419e-05/0.5076, allocations: 57.17 kB / 0.5651 GB, free: 18.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002725/0.5079, allocations: 280.8 kB / 0.5653 GB, free: 18.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5079, allocations: 0 / 0.5653 GB, free: 18.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001111/0.509, allocations: 234.9 kB / 0.5656 GB, free: 18.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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.007144/0.5162, allocations: 3.742 MB / 0.5692 GB, free: 16.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006021/0.5222, allocations: 2.176 MB / 0.5713 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.625e-05/0.5222, allocations: 3.219 kB / 0.5713 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003279/0.5255, allocations: 1.07 MB / 0.5724 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.5269, allocations: 149.9 kB / 0.5725 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/0.5499, allocations: 12.47 MB / 0.5847 GB, free: 3.121 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.5502, allocations: 333.8 kB / 0.585 GB, free: 2.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001016/0.5512, allocations: 213.1 kB / 0.5852 GB, free: 2.559 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/0.5519, allocations: 219.4 kB / 0.5854 GB, free: 2.344 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5519, allocations: 0 / 0.5854 GB, free: 2.344 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05241/0.6043, allocations: 24.01 MB / 0.6089 GB, free: 10.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.07, allocations: 19.81 kB / 0.6089 GB, free: 10.26 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.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: 17.144191476050764]