Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001339/0.001339, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001671/0.001671, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2373/0.2373, allocations: 44.9 MB / 358.8 MB, free: 6.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002273/0.002273, allocations: 72.17 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3331, allocations: 65.46 MB / 0.557 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004611/0.3377, allocations: 2.429 MB / 0.5594 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.3398, allocations: 0.9835 MB / 0.5603 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002946/0.3401, allocations: 15.81 kB / 0.5604 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004644/0.3405, allocations: 123.2 kB / 0.5605 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003519/0.3409, allocations: 99.31 kB / 0.5606 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008882/0.3418, allocations: 291.6 kB / 0.5608 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009839/0.3427, allocations: 0.7171 MB / 0.5615 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.3429, allocations: 51.08 kB / 0.5616 GB, free: 3.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.3435, allocations: 315 kB / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/0.3441, allocations: 338.8 kB / 0.5622 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.3442, allocations: 60 kB / 0.5623 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.3444, allocations: 60 kB / 0.5623 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.3446, allocations: 199.4 kB / 0.5625 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003261/0.3449, allocations: 238.7 kB / 0.5628 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.3457, allocations: 0.5564 MB / 0.5633 GB, free: 1.348 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3457, allocations: 0 / 0.5633 GB, free: 1.348 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3457, allocations: 3.938 kB / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.3457, allocations: 4 kB / 0.5633 GB, free: 1.34 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.002597/0.3483, allocations: 0.8735 MB / 0.5642 GB, free: 448 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3484, allocations: 12.03 kB / 0.5642 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.3485, allocations: 86.72 kB / 0.5643 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.3486, allocations: 64.61 kB / 0.5643 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006813/0.3493, allocations: 321 kB / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006231/0.3499, allocations: 0.6747 MB / 0.5653 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.35, allocations: 44.38 kB / 0.5653 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.3522, allocations: 0.8046 MB / 0.5661 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.3522, allocations: 4 kB / 0.5661 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.601e-05/0.3523, allocations: 20 kB / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.3523, allocations: 8 kB / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003546/0.3558, allocations: 1.2 MB / 0.5673 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.3591, allocations: 2.003 MB / 0.5693 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/0.3621, allocations: 0.7777 MB / 0.57 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.3636, allocations: 449.9 kB / 0.5705 GB, free: 9.672 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.197e-05/0.3637, allocations: 8 kB / 0.5705 GB, free: 9.664 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.3637, allocations: 46.44 kB / 0.5705 GB, free: 9.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.285e-06/0.3637, allocations: 0 / 0.5705 GB, free: 9.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.09036/0.4541, allocations: 15.48 MB / 0.5856 GB, free: 10.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/0.4542, allocations: 97.98 kB / 0.5857 GB, free: 9.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005641/0.4547, allocations: 385.5 kB / 0.5861 GB, free: 9.531 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.455, allocations: 49.7 kB / 0.5861 GB, free: 9.477 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.4552, allocations: 221.5 kB / 0.5863 GB, free: 9.254 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004871/0.4557, allocations: 416.4 kB / 0.5867 GB, free: 8.844 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006002/0.4563, allocations: 206.8 kB / 0.5869 GB, free: 8.633 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.4565, allocations: 370.8 kB / 0.5873 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003812/0.4603, allocations: 1.342 MB / 0.5886 GB, free: 6.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003962/0.4642, allocations: 1.493 MB / 0.5901 GB, free: 5.379 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007095/0.4713, allocations: 2.439 MB / 0.5924 GB, free: 2.898 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.4713, allocations: 0 / 0.5924 GB, free: 2.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008049/0.4794, allocations: 2.835 MB / 0.5952 GB, free: 52 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.4794, allocations: 10.66 kB / 0.5952 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.4794, allocations: 4 kB / 0.5952 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.686e-05/0.4795, allocations: 8 kB / 0.5952 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/0.4824, allocations: 403.4 kB / 0.5956 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.592e-05/0.4824, allocations: 15.92 kB / 0.5956 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.4845, allocations: 223.7 kB / 0.5958 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001748/0.4847, allocations: 39.98 kB / 0.5959 GB, free: 15.36 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.0005238/0.4852, allocations: 231.6 kB / 0.5961 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002396/0.4855, allocations: 63.61 kB / 0.5962 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002881/0.4857, allocations: 108.7 kB / 0.5963 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.4858, allocations: 19.94 kB / 0.5963 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.4858, allocations: 3.938 kB / 0.5963 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.4858, allocations: 7.984 kB / 0.5963 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.4982, allocations: 5.197 MB / 0.6014 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.712e-05/0.4983, allocations: 27.94 kB / 0.6014 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/0.4998, allocations: 355.8 kB / 0.6017 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.889e-05/0.4999, allocations: 24 kB / 0.6018 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.5, allocations: 48 kB / 0.6018 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-05/0.5, allocations: 43.86 kB / 0.6018 GB, free: 8.914 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.57e-05/0.5, allocations: 31.88 kB / 0.6019 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007512/0.5075, allocations: 3.106 MB / 0.6049 GB, free: 5.473 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.508, allocations: 163.5 kB / 0.6051 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.5081, allocations: 47.98 kB / 0.6051 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/0.5095, allocations: 191.8 kB / 0.6053 GB, free: 5.078 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/0.51, allocations: 227.1 kB / 0.6055 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.5101, allocations: 56 kB / 0.6056 GB, free: 4.801 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003295/0.5104, allocations: 263.1 kB / 0.6058 GB, free: 4.543 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5104, allocations: 0 / 0.6058 GB, free: 4.543 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001047/0.5115, allocations: 232 kB / 0.606 GB, free: 4.316 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.007974/0.5194, allocations: 3.675 MB / 0.6096 GB, free: 344 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006463/0.5259, allocations: 2.159 MB / 0.6117 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/0.5259, allocations: 4 kB / 0.6117 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003437/0.5293, allocations: 1.047 MB / 0.6128 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.5307, allocations: 148.7 kB / 0.6129 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/0.5589, allocations: 12.39 MB / 0.625 GB, free: 15.86 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00074/0.5596, allocations: 0.9281 MB / 0.6259 GB, free: 14.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.5606, allocations: 214 kB / 0.6261 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007749/0.5614, allocations: 215.4 kB / 0.6263 GB, free: 14.48 MB / 478.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5614, allocations: 0 / 0.6263 GB, free: 14.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06078/0.6222, allocations: 22.87 MB / 0.6487 GB, free: 7.766 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.64, allocations: 11.27 kB / 0.6487 GB, free: 7.758 MB / 494.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 16.666404783027247]