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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 113.3 kB / 17.13 MB, free: 5.754 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00224/0.00224, allocations: 191.7 kB / 20.08 MB, free: 2.852 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.559/1.559, allocations: 207.6 MB / 230.5 MB, free: 3.973 MB / 174.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.3713/0.3713, allocations: 44.23 MB / 326.5 MB, free: 6.816 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 75.89 kB / 462.2 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3305, allocations: 61 MB / 0.5109 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003153/0.3337, allocations: 2.421 MB / 0.5133 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.3352, allocations: 0.9887 MB / 0.5142 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.3354, allocations: 13.09 kB / 0.5142 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004227/0.3358, allocations: 124.5 kB / 0.5144 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.336, allocations: 94.14 kB / 0.5144 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005679/0.3366, allocations: 291 kB / 0.5147 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000829/0.3374, allocations: 0.7259 MB / 0.5154 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.3376, allocations: 51.06 kB / 0.5155 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003119/0.3379, allocations: 298.4 kB / 0.5158 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.3382, allocations: 348.1 kB / 0.5161 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.708e-05/0.3383, allocations: 60.41 kB / 0.5162 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.3384, allocations: 60.38 kB / 0.5162 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.3386, allocations: 197.1 kB / 0.5164 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.3388, allocations: 235.7 kB / 0.5166 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006052/0.3394, allocations: 0.5677 MB / 0.5172 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3394, allocations: 0 / 0.5172 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3394, allocations: 2.031 kB / 0.5172 GB, free: 8.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.3394, allocations: 0 / 0.5172 GB, free: 8.371 MB / 382.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.002076/0.3415, allocations: 0.96 MB / 0.5181 GB, free: 7.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3415, allocations: 11.89 kB / 0.5181 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.524e-05/0.3416, allocations: 94.7 kB / 0.5182 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.3417, allocations: 60.66 kB / 0.5183 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000584/0.3423, allocations: 379.4 kB / 0.5186 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000285/0.3426, allocations: 263.6 kB / 0.5189 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.3427, allocations: 56.27 kB / 0.5189 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.3443, allocations: 0.8085 MB / 0.5197 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.3444, allocations: 0 / 0.5197 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.437e-05/0.3445, allocations: 19.98 kB / 0.5198 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3445, allocations: 16 kB / 0.5198 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002964/0.3474, allocations: 1.192 MB / 0.5209 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002474/0.3499, allocations: 2.039 MB / 0.5229 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.3525, allocations: 0.7743 MB / 0.5237 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.3537, allocations: 457.8 kB / 0.5241 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.771e-05/0.3538, allocations: 12 kB / 0.5241 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.3538, allocations: 42.5 kB / 0.5242 GB, free: 1.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.274e-06/0.3538, allocations: 4 kB / 0.5242 GB, free: 1.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.08869/0.4425, allocations: 15.77 MB / 0.5396 GB, free: 1.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.069e-05/0.4426, allocations: 98.16 kB / 0.5397 GB, free: 1.047 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005814/0.4431, allocations: 385.5 kB / 0.54 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001979/0.4433, allocations: 45.7 kB / 0.5401 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.4435, allocations: 225.5 kB / 0.5403 GB, free: 392 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004608/0.444, allocations: 424.5 kB / 0.5407 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006332/0.4446, allocations: 202.9 kB / 0.5409 GB, free: 15.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.4449, allocations: 366.8 kB / 0.5412 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003675/0.4485, allocations: 1.345 MB / 0.5426 GB, free: 14.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/0.4523, allocations: 1.493 MB / 0.544 GB, free: 12.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007018/0.4593, allocations: 2.441 MB / 0.5464 GB, free: 10.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4593, allocations: 0 / 0.5464 GB, free: 10.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008213/0.4675, allocations: 2.834 MB / 0.5492 GB, free: 7.172 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.695e-05/0.4675, allocations: 8 kB / 0.5492 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.4676, allocations: 4 kB / 0.5492 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.12e-05/0.4676, allocations: 8 kB / 0.5492 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/0.4704, allocations: 407.5 kB / 0.5496 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.764e-05/0.4704, allocations: 11.75 kB / 0.5496 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.4724, allocations: 223.7 kB / 0.5498 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.4726, allocations: 40 kB / 0.5498 GB, free: 6.488 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: 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.0005706/0.4731, allocations: 237.7 kB / 0.5501 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.4734, allocations: 71.58 kB / 0.5501 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002938/0.4737, allocations: 108.7 kB / 0.5502 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/0.4737, allocations: 15.94 kB / 0.5503 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.821e-05/0.4737, allocations: 0 / 0.5503 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.4737, allocations: 7.984 kB / 0.5503 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.4863, allocations: 5.23 MB / 0.5554 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.134e-05/0.4863, allocations: 24 kB / 0.5554 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.4879, allocations: 364 kB / 0.5557 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.673e-05/0.4879, allocations: 24 kB / 0.5558 GB, free: 76 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.488, allocations: 48 kB / 0.5558 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.531e-05/0.4881, allocations: 43.84 kB / 0.5558 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.56e-05/0.4881, allocations: 31.88 kB / 0.5559 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007454/0.4956, allocations: 3.099 MB / 0.5589 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004919/0.4961, allocations: 240.6 kB / 0.5591 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4962, allocations: 43.98 kB / 0.5592 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.4974, allocations: 191.8 kB / 0.5594 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004329/0.4979, allocations: 215.2 kB / 0.5596 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.498, allocations: 59.98 kB / 0.5596 GB, free: 11.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003289/0.4983, allocations: 271.1 kB / 0.5599 GB, free: 11.54 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4983, allocations: 0 / 0.5599 GB, free: 11.54 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001015/0.4993, allocations: 228 kB / 0.5601 GB, free: 11.31 MB / 430.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.00777/0.5071, allocations: 3.695 MB / 0.5637 GB, free: 7.312 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006695/0.5138, allocations: 2.164 MB / 0.5658 GB, free: 5.148 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.852e-05/0.5138, allocations: 7.938 kB / 0.5658 GB, free: 5.141 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003473/0.5173, allocations: 1.048 MB / 0.5668 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.5188, allocations: 152.5 kB / 0.567 GB, free: 3.949 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02973/0.5486, allocations: 12.38 MB / 0.5791 GB, free: 6.844 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.5496, allocations: 0.9243 MB / 0.58 GB, free: 5.891 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001231/0.5509, allocations: 210.2 kB / 0.5802 GB, free: 5.684 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007307/0.5516, allocations: 219.4 kB / 0.5804 GB, free: 5.469 MB / 446.1 MB Notification: Performance of SimCode: time 1.793e-06/0.5516, allocations: 0 / 0.5804 GB, free: 5.469 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06056/0.6121, allocations: 21.79 MB / 0.6017 GB, free: 15.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.772/10.38, allocations: 13.5 kB / 0.6017 GB, free: 15.61 MB / 478.1 MB " [Timeout remaining time 650] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 13.432181491982192]