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.00136/0.00136, 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.001644/0.001644, allocations: 216.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.646/1.646, allocations: 207.7 MB / 233.8 MB, free: 9.801 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.2374/0.2374, allocations: 44.27 MB / 330.3 MB, free: 9.301 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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",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.002626/0.002626, allocations: 82.53 kB / 467.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1304, allocations: 61.04 MB / 0.5161 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004288/0.1347, allocations: 2.252 MB / 0.5183 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.1368, allocations: 0.9523 MB / 0.5193 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003501/0.1372, allocations: 11.94 kB / 0.5193 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004808/0.1377, allocations: 123.2 kB / 0.5194 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003689/0.138, allocations: 107.3 kB / 0.5195 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008418/0.1389, allocations: 291.5 kB / 0.5198 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1399, allocations: 0.729 MB / 0.5205 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.1401, allocations: 45.2 kB / 0.5205 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005278/0.1406, allocations: 287.2 kB / 0.5208 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006094/0.1412, allocations: 326.7 kB / 0.5211 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001905/0.1414, allocations: 71.94 kB / 0.5212 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.1416, allocations: 60 kB / 0.5212 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002494/0.1418, allocations: 199.4 kB / 0.5214 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003105/0.1421, allocations: 215 kB / 0.5216 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007886/0.1429, allocations: 0.572 MB / 0.5222 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1429, allocations: 0 / 0.5222 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.999e-06/0.1429, allocations: 3.984 kB / 0.5222 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.508e-05/0.1429, allocations: 0 / 0.5222 GB, free: 0.9375 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.002745/0.1457, allocations: 0.8909 MB / 0.5231 GB, free: 16 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1457, allocations: 8.031 kB / 0.5231 GB, free: 8 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/0.1459, allocations: 90.7 kB / 0.5232 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.146, allocations: 60.66 kB / 0.5232 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007229/0.1467, allocations: 321.1 kB / 0.5235 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006616/0.1474, allocations: 0.6708 MB / 0.5242 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1475, allocations: 48.33 kB / 0.5242 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/0.1499, allocations: 0.8202 MB / 0.525 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.1499, allocations: 0 / 0.525 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.088e-05/0.1499, allocations: 16 kB / 0.5251 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.15, allocations: 12 kB / 0.5251 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003995/0.154, allocations: 1.212 MB / 0.5262 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003357/0.1573, allocations: 1.91 MB / 0.5281 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003014/0.1603, allocations: 0.7404 MB / 0.5288 GB, free: 9.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.162, allocations: 467.3 kB / 0.5293 GB, free: 9.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.947e-05/0.1621, allocations: 12 kB / 0.5293 GB, free: 9.348 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/0.1621, allocations: 54.36 kB / 0.5293 GB, free: 9.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.075e-06/0.1621, allocations: 0 / 0.5293 GB, free: 9.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.3269/0.4891, allocations: 15.52 MB / 0.5445 GB, free: 28.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.4891, allocations: 98.42 kB / 0.5446 GB, free: 28.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.4897, allocations: 421.9 kB / 0.545 GB, free: 27.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.4898, allocations: 46.48 kB / 0.545 GB, free: 27.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.49, allocations: 221.6 kB / 0.5452 GB, free: 27.63 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003624/0.4903, allocations: 425.3 kB / 0.5457 GB, free: 27.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005485/0.4909, allocations: 202.5 kB / 0.5458 GB, free: 27.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.491, allocations: 376.8 kB / 0.5462 GB, free: 26.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004125/0.4951, allocations: 1.354 MB / 0.5475 GB, free: 26.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004476/0.4996, allocations: 1.5 MB / 0.549 GB, free: 25.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00837/0.508, allocations: 2.457 MB / 0.5514 GB, free: 24.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.508, allocations: 3.203 kB / 0.5514 GB, free: 24.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008614/0.5166, allocations: 2.856 MB / 0.5542 GB, free: 23.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.5166, allocations: 5.625 kB / 0.5542 GB, free: 23.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.5167, allocations: 3.062 kB / 0.5542 GB, free: 23.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.159e-05/0.5167, allocations: 10 kB / 0.5542 GB, free: 23.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002774/0.5195, allocations: 410.9 kB / 0.5546 GB, free: 23.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.5195, allocations: 8.891 kB / 0.5546 GB, free: 23.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/0.5216, allocations: 221.5 kB / 0.5548 GB, free: 23.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.5218, allocations: 43.59 kB / 0.5549 GB, free: 23.57 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.0004799/0.5223, allocations: 234.6 kB / 0.5551 GB, free: 23.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.5225, allocations: 66.39 kB / 0.5551 GB, free: 23.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002529/0.5227, allocations: 115.1 kB / 0.5553 GB, free: 23.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.5228, allocations: 12.56 kB / 0.5553 GB, free: 23.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.674e-05/0.5228, allocations: 1.734 kB / 0.5553 GB, free: 23.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.5228, allocations: 10.67 kB / 0.5553 GB, free: 23.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.5358, allocations: 4.865 MB / 0.56 GB, free: 20.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.313e-05/0.5358, allocations: 22.06 kB / 0.56 GB, free: 20.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/0.5374, allocations: 356.7 kB / 0.5604 GB, free: 20.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.52e-05/0.5375, allocations: 30.45 kB / 0.5604 GB, free: 20.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.5376, allocations: 51 kB / 0.5605 GB, free: 20.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-05/0.5376, allocations: 43.72 kB / 0.5605 GB, free: 20.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.441e-05/0.5376, allocations: 31.25 kB / 0.5605 GB, free: 20.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007992/0.5456, allocations: 3.126 MB / 0.5636 GB, free: 19.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007088/0.5463, allocations: 172 kB / 0.5638 GB, free: 19.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.5465, allocations: 52.36 kB / 0.5638 GB, free: 19.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.5479, allocations: 195.6 kB / 0.564 GB, free: 18.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005216/0.5484, allocations: 226.7 kB / 0.5642 GB, free: 18.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.5485, allocations: 56.94 kB / 0.5643 GB, free: 18.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004488/0.549, allocations: 281.4 kB / 0.5645 GB, free: 18.76 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.549, allocations: 4 kB / 0.5645 GB, free: 18.76 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001891/0.5509, allocations: 236.2 kB / 0.5648 GB, free: 18.72 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.008324/0.5592, allocations: 3.727 MB / 0.5684 GB, free: 16.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007313/0.5665, allocations: 2.182 MB / 0.5705 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.12e-05/0.5665, allocations: 7.484 kB / 0.5705 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003876/0.5704, allocations: 1.07 MB / 0.5716 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.5721, allocations: 151.2 kB / 0.5717 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02711/0.5992, allocations: 12.47 MB / 0.5839 GB, free: 3.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.5996, allocations: 329.8 kB / 0.5842 GB, free: 2.922 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001124/0.6007, allocations: 210.8 kB / 0.5844 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007138/0.6014, allocations: 219.4 kB / 0.5846 GB, free: 2.5 MB / 414.1 MB Notification: Performance of SimCode: time 1.633e-06/0.6014, allocations: 4 kB / 0.5846 GB, free: 2.496 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0741/0.6755, allocations: 24.04 MB / 0.6081 GB, free: 10.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.93, allocations: 3.5 kB / 0.6081 GB, free: 10.38 MB / 446.1 MB " [Timeout remaining time 647] (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: 16.19021316198632]