Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.00132/0.00132, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001448/0.001448, allocations: 209.7 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.425/1.425, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.226/0.226, allocations: 46.93 MB / 360.9 MB, free: 4.281 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 67.89 kB / 0.4962 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3242, allocations: 66.04 MB / 0.5606 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003772/0.328, allocations: 2.428 MB / 0.563 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.3298, allocations: 0.9874 MB / 0.564 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.3299, allocations: 19.81 kB / 0.564 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004087/0.3303, allocations: 119.2 kB / 0.5641 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.3305, allocations: 91.39 kB / 0.5642 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006514/0.3312, allocations: 299.5 kB / 0.5645 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008155/0.332, allocations: 0.7173 MB / 0.5652 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.3322, allocations: 51.08 kB / 0.5652 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003775/0.3325, allocations: 307 kB / 0.5655 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004662/0.333, allocations: 346.7 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.606e-05/0.3331, allocations: 60 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.75e-05/0.3332, allocations: 63.94 kB / 0.566 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.3334, allocations: 195.4 kB / 0.5662 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002259/0.3336, allocations: 234.8 kB / 0.5664 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006308/0.3343, allocations: 0.5642 MB / 0.5669 GB, free: 13.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3343, allocations: 0 / 0.5669 GB, free: 13.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3343, allocations: 0 / 0.5669 GB, free: 13.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.3343, allocations: 0 / 0.5669 GB, free: 13.98 MB / 414.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.002199/0.3365, allocations: 0.8752 MB / 0.5678 GB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3365, allocations: 12.03 kB / 0.5678 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.3366, allocations: 86.72 kB / 0.5679 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.3367, allocations: 64.61 kB / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006356/0.3374, allocations: 317.1 kB / 0.5682 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/0.338, allocations: 0.6669 MB / 0.5689 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.3381, allocations: 52.25 kB / 0.569 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.34, allocations: 0.8046 MB / 0.5697 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.3401, allocations: 8 kB / 0.5697 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.3401, allocations: 16 kB / 0.5698 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.3401, allocations: 11.98 kB / 0.5698 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00335/0.3435, allocations: 1.2 MB / 0.5709 GB, free: 9.637 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002926/0.3464, allocations: 1.999 MB / 0.5729 GB, free: 7.562 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002951/0.3494, allocations: 0.7777 MB / 0.5737 GB, free: 6.766 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.3508, allocations: 449.9 kB / 0.5741 GB, free: 6.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.002e-05/0.3509, allocations: 8 kB / 0.5741 GB, free: 6.312 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.3509, allocations: 46.5 kB / 0.5741 GB, free: 6.258 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 1.833e-06/0.3509, allocations: 0 / 0.5741 GB, free: 6.258 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.08289/0.4338, allocations: 15.47 MB / 0.5892 GB, free: 6.688 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.4339, allocations: 98.05 kB / 0.5893 GB, free: 6.574 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005078/0.4344, allocations: 385.5 kB / 0.5897 GB, free: 6.188 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.4345, allocations: 49.7 kB / 0.5898 GB, free: 6.133 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.4347, allocations: 221.5 kB / 0.59 GB, free: 5.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004253/0.4352, allocations: 412.5 kB / 0.5904 GB, free: 5.504 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005277/0.4357, allocations: 206.8 kB / 0.5906 GB, free: 5.293 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.4359, allocations: 366.8 kB / 0.5909 GB, free: 4.926 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003602/0.4395, allocations: 1.349 MB / 0.5922 GB, free: 3.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00374/0.4432, allocations: 1.497 MB / 0.5937 GB, free: 2.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006646/0.4499, allocations: 2.44 MB / 0.5961 GB, free: 15.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4499, allocations: 0 / 0.5961 GB, free: 15.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007519/0.4574, allocations: 2.831 MB / 0.5988 GB, free: 12.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.4574, allocations: 8 kB / 0.5988 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.4574, allocations: 4 kB / 0.5988 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/0.4575, allocations: 12.25 kB / 0.5989 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/0.4601, allocations: 403.3 kB / 0.5992 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.182e-05/0.4602, allocations: 19.92 kB / 0.5993 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/0.4621, allocations: 219.7 kB / 0.5995 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.4623, allocations: 43.97 kB / 0.5995 GB, free: 12.01 MB / 446.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: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,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 (148): * Single equations (assignments): 148 * 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.0004873/0.4628, allocations: 239.6 kB / 0.5997 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.463, allocations: 59.62 kB / 0.5998 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002727/0.4633, allocations: 108.7 kB / 0.5999 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.4633, allocations: 12 kB / 0.5999 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.4633, allocations: 3.938 kB / 0.5999 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.4633, allocations: 7.984 kB / 0.5999 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/0.4753, allocations: 5.208 MB / 0.605 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.831e-05/0.4753, allocations: 24 kB / 0.605 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/0.4768, allocations: 355.4 kB / 0.6054 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.983e-05/0.4768, allocations: 24 kB / 0.6054 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.4769, allocations: 48 kB / 0.6054 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.861e-05/0.477, allocations: 47.78 kB / 0.6055 GB, free: 5.555 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.529e-05/0.477, allocations: 31.88 kB / 0.6055 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007396/0.4844, allocations: 3.099 MB / 0.6085 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004207/0.4848, allocations: 159.5 kB / 0.6087 GB, free: 1.961 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.485, allocations: 51.98 kB / 0.6087 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.4862, allocations: 191.8 kB / 0.6089 GB, free: 1.723 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004395/0.4867, allocations: 223.2 kB / 0.6091 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.4868, allocations: 56 kB / 0.6092 GB, free: 1.449 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003234/0.4871, allocations: 263.1 kB / 0.6094 GB, free: 1.191 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4871, allocations: 3.938 kB / 0.6094 GB, free: 1.188 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001086/0.4882, allocations: 228 kB / 0.6097 GB, free: 0.9648 MB / 446.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: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],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 (120): * Single equations (assignments): 120 * 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.007765/0.496, allocations: 3.683 MB / 0.6133 GB, free: 12.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006223/0.5022, allocations: 2.155 MB / 0.6154 GB, free: 10.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/0.5022, allocations: 4 kB / 0.6154 GB, free: 10.81 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003204/0.5054, allocations: 1.051 MB / 0.6164 GB, free: 9.766 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.5067, allocations: 151.4 kB / 0.6165 GB, free: 9.621 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02861/0.5353, allocations: 12.39 MB / 0.6286 GB, free: 12.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008679/0.5362, allocations: 0.9203 MB / 0.6295 GB, free: 11.55 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001119/0.5373, allocations: 218 kB / 0.6297 GB, free: 11.34 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007701/0.5381, allocations: 223.4 kB / 0.63 GB, free: 11.12 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5381, allocations: 0 / 0.63 GB, free: 11.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06326/0.6014, allocations: 22.87 MB / 0.6523 GB, free: 4.414 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.96, allocations: 4 kB / 0.6523 GB, free: 4.41 MB / 494.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 15.890364815946668]