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.001473/0.001473, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001535/0.001535, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.2292/0.2292, allocations: 46.97 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 179] 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.002052/0.002052, allocations: 71.89 kB / 0.4961 GB, free: 8.254 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3145, allocations: 66.01 MB / 0.5606 GB, free: 33.31 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002774/0.3172, allocations: 2.255 MB / 0.5628 GB, free: 31.79 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.3186, allocations: 0.9431 MB / 0.5637 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.3187, allocations: 9.688 kB / 0.5637 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003357/0.319, allocations: 114.5 kB / 0.5638 GB, free: 31.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.3192, allocations: 103.7 kB / 0.5639 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.3198, allocations: 301.5 kB / 0.5642 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000469/0.3202, allocations: 0.7185 MB / 0.5649 GB, free: 30.58 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3204, allocations: 48.88 kB / 0.5649 GB, free: 30.55 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.3206, allocations: 291.7 kB / 0.5652 GB, free: 30.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.321, allocations: 327.8 kB / 0.5655 GB, free: 30.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.567e-05/0.3211, allocations: 65.5 kB / 0.5656 GB, free: 30.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.3211, allocations: 63.69 kB / 0.5657 GB, free: 30.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.3213, allocations: 201 kB / 0.5659 GB, free: 30.19 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.3214, allocations: 208.3 kB / 0.566 GB, free: 30.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.3219, allocations: 0.5686 MB / 0.5666 GB, free: 29.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3219, allocations: 2.344 kB / 0.5666 GB, free: 29.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3219, allocations: 3.219 kB / 0.5666 GB, free: 29.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.322, allocations: 0 / 0.5666 GB, free: 29.82 MB / 446.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.002108/0.3241, allocations: 0.8803 MB / 0.5675 GB, free: 29.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.3241, allocations: 9.344 kB / 0.5675 GB, free: 29.33 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.471e-05/0.3242, allocations: 94.81 kB / 0.5676 GB, free: 29.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.971e-05/0.3243, allocations: 64.73 kB / 0.5676 GB, free: 29.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005382/0.3248, allocations: 319.2 kB / 0.5679 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003599/0.3252, allocations: 0.6749 MB / 0.5686 GB, free: 28.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.493e-05/0.3253, allocations: 37.25 kB / 0.5686 GB, free: 28.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.3272, allocations: 0.8237 MB / 0.5694 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.3272, allocations: 3.938 kB / 0.5694 GB, free: 27.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.226e-05/0.3272, allocations: 17.97 kB / 0.5695 GB, free: 27.92 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.3272, allocations: 9 kB / 0.5695 GB, free: 27.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003632/0.3309, allocations: 1.21 MB / 0.5706 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002556/0.3334, allocations: 1.889 MB / 0.5725 GB, free: 26.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/0.3363, allocations: 0.757 MB / 0.5732 GB, free: 26.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001579/0.3378, allocations: 465 kB / 0.5737 GB, free: 25.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.869e-05/0.3379, allocations: 7.531 kB / 0.5737 GB, free: 25.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.3379, allocations: 51.48 kB / 0.5737 GB, free: 25.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=66): time 2.725e-06/0.3379, allocations: 1.375 kB / 0.5737 GB, free: 25.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.08673/0.4247, allocations: 15.55 MB / 0.5889 GB, free: 21.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.4247, allocations: 94.89 kB / 0.589 GB, free: 21.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004845/0.4252, allocations: 411.8 kB / 0.5894 GB, free: 20.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001836/0.4254, allocations: 46.05 kB / 0.5894 GB, free: 20.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.4255, allocations: 229 kB / 0.5897 GB, free: 20.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003007/0.4258, allocations: 423.8 kB / 0.5901 GB, free: 20.17 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005051/0.4263, allocations: 198.4 kB / 0.5903 GB, free: 20.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.509e-05/0.4264, allocations: 378.4 kB / 0.5906 GB, free: 19.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003526/0.4299, allocations: 1.357 MB / 0.5919 GB, free: 18.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003819/0.4337, allocations: 1.5 MB / 0.5934 GB, free: 18.06 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006772/0.4405, allocations: 2.454 MB / 0.5958 GB, free: 16.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.4405, allocations: 5.156 kB / 0.5958 GB, free: 16.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008361/0.4489, allocations: 2.852 MB / 0.5986 GB, free: 15.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.4489, allocations: 8 kB / 0.5986 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.4489, allocations: 4 kB / 0.5986 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.313e-05/0.449, allocations: 8 kB / 0.5986 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002689/0.4517, allocations: 415.6 kB / 0.599 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.872e-05/0.4517, allocations: 15.88 kB / 0.599 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/0.4539, allocations: 219.7 kB / 0.5992 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002171/0.4541, allocations: 43.98 kB / 0.5993 GB, free: 14.45 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: 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.0005215/0.4546, allocations: 237.9 kB / 0.5995 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.4549, allocations: 63.58 kB / 0.5996 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001988/0.4551, allocations: 112.7 kB / 0.5997 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4551, allocations: 12 kB / 0.5997 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.162e-05/0.4551, allocations: 3.938 kB / 0.5997 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.4551, allocations: 11.97 kB / 0.5997 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.4658, allocations: 4.854 MB / 0.6044 GB, free: 8.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-05/0.4658, allocations: 20 kB / 0.6045 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/0.4673, allocations: 355.6 kB / 0.6048 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.127e-05/0.4673, allocations: 31.94 kB / 0.6048 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.643e-05/0.4674, allocations: 48 kB / 0.6049 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.95e-05/0.4674, allocations: 39.86 kB / 0.6049 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/0.4674, allocations: 35.81 kB / 0.6049 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006618/0.474, allocations: 3.143 MB / 0.608 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.4745, allocations: 167.6 kB / 0.6082 GB, free: 4.691 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.4746, allocations: 55.92 kB / 0.6082 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/0.476, allocations: 195.8 kB / 0.6084 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000407/0.4764, allocations: 227.2 kB / 0.6086 GB, free: 4.223 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.24e-05/0.4765, allocations: 56 kB / 0.6087 GB, free: 4.168 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002699/0.4768, allocations: 283.1 kB / 0.6089 GB, free: 3.887 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4768, allocations: 0 / 0.6089 GB, free: 3.887 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001041/0.4778, allocations: 232 kB / 0.6092 GB, free: 3.66 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: 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.007562/0.4854, allocations: 3.723 MB / 0.6128 GB, free: 15.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01184/0.4972, allocations: 2.191 MB / 0.6149 GB, free: 13.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.21e-05/0.4972, allocations: 4 kB / 0.6149 GB, free: 13.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00666/0.5039, allocations: 1.063 MB / 0.616 GB, free: 12.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.5062, allocations: 147.5 kB / 0.6161 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04199/0.5482, allocations: 12.49 MB / 0.6283 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.5488, allocations: 333.6 kB / 0.6286 GB, free: 14.64 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00132/0.5501, allocations: 198 kB / 0.6288 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008008/0.5509, allocations: 219.4 kB / 0.629 GB, free: 14.24 MB / 478.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5509, allocations: 0 / 0.629 GB, free: 14.24 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06123/0.6121, allocations: 23.92 MB / 0.6524 GB, free: 6.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.46, allocations: 3.938 kB / 0.6524 GB, free: 6.59 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.444889246020466]