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.0009024/0.0009024, allocations: 80.53 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007786/0.0007786, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8132/0.8132, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.1278/0.1278, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 3.938 kB / 406.8 MB, free: 2.258 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.077e-05, allocations: 2.281 kB / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002557/0.002578, allocations: 2.259 MB / 409.1 MB, free: 15.98 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.004043, allocations: 0.9561 MB / 410 MB, free: 15.02 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.0042, allocations: 15.88 kB / 410.1 MB, free: 15 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003827/0.004583, allocations: 127.2 kB / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.004774, allocations: 103.3 kB / 410.3 MB, free: 14.78 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.005476, allocations: 295.4 kB / 410.6 MB, free: 14.49 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006891/0.006165, allocations: 0.7328 MB / 411.3 MB, free: 13.75 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.006338, allocations: 41.27 kB / 411.3 MB, free: 13.71 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003433/0.006681, allocations: 391.2 kB / 411.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.006976, allocations: 299.2 kB / 412 MB, free: 13.03 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 6.967e-05/0.007045, allocations: 64 kB / 412.1 MB, free: 12.97 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.278e-05/0.007098, allocations: 64 kB / 412.1 MB, free: 12.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.00726, allocations: 207.3 kB / 412.3 MB, free: 12.7 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.007379, allocations: 167.6 kB / 412.5 MB, free: 12.54 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.00783, allocations: 0.6271 MB / 413.1 MB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.007833, allocations: 0 / 413.1 MB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.007834, allocations: 0 / 413.1 MB, free: 11.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.00784, allocations: 0 / 413.1 MB, free: 11.91 MB / 394.7 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.001349/0.009189, allocations: 0.883 MB / 414 MB, free: 11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/0.009249, allocations: 8.031 kB / 414 MB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.878e-05/0.009328, allocations: 86.72 kB / 414.1 MB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.092e-05/0.009419, allocations: 68.61 kB / 414.2 MB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.009961, allocations: 312.4 kB / 414.5 MB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000393/0.01035, allocations: 0.6786 MB / 415.2 MB, free: 9.684 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.508e-05/0.01042, allocations: 40.38 kB / 415.2 MB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.01163, allocations: 0.813 MB / 416 MB, free: 8.789 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.01165, allocations: 8.078 kB / 416 MB, free: 8.781 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.077e-05/0.01169, allocations: 19.94 kB / 416 MB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.0117, allocations: 15.98 kB / 416.1 MB, free: 8.746 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.01365, allocations: 1.216 MB / 417.3 MB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.01566, allocations: 1.902 MB / 419.2 MB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.01723, allocations: 0.7482 MB / 419.9 MB, free: 4.785 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008164/0.01804, allocations: 463.3 kB / 420.4 MB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.126e-05/0.0181, allocations: 12 kB / 420.4 MB, free: 4.316 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.01814, allocations: 42.5 kB / 420.4 MB, free: 4.266 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 6.362e-06/0.01814, allocations: 0 / 420.4 MB, free: 4.266 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.04469/0.06283, allocations: 15.54 MB / 436 MB, free: 4.625 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.06288, allocations: 90.11 kB / 436.1 MB, free: 4.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003663/0.06325, allocations: 425.4 kB / 436.5 MB, free: 4.094 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.06335, allocations: 45.7 kB / 436.5 MB, free: 4.043 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.06346, allocations: 217.6 kB / 436.7 MB, free: 3.824 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.06372, allocations: 420.4 kB / 437.1 MB, free: 3.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003397/0.06406, allocations: 202.9 kB / 437.3 MB, free: 3.207 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.06418, allocations: 378.7 kB / 437.7 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002024/0.0662, allocations: 1.353 MB / 439.1 MB, free: 1.473 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002076/0.06828, allocations: 1.505 MB / 440.6 MB, free: 15.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003732/0.07201, allocations: 2.459 MB / 443 MB, free: 13.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.07201, allocations: 0 / 443 MB, free: 13.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004338/0.07635, allocations: 2.855 MB / 445.9 MB, free: 10.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.07637, allocations: 8 kB / 445.9 MB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.07638, allocations: 4 kB / 445.9 MB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.0764, allocations: 11.94 kB / 445.9 MB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.07768, allocations: 403.6 kB / 446.3 MB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.07769, allocations: 15.94 kB / 446.3 MB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008962/0.07859, allocations: 219.7 kB / 446.5 MB, free: 9.914 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.07869, allocations: 47.92 kB / 446.6 MB, free: 9.867 MB / 426.7 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.0003568/0.07904, allocations: 237.3 kB / 446.8 MB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.07918, allocations: 63.58 kB / 446.9 MB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.07931, allocations: 116.7 kB / 447 MB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.07932, allocations: 12 kB / 447 MB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.07933, allocations: 0 / 447 MB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.07934, allocations: 7.984 kB / 447 MB, free: 9.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006975/0.08632, allocations: 4.866 MB / 451.9 MB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.08633, allocations: 20 kB / 451.9 MB, free: 4.215 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007389/0.08707, allocations: 355.6 kB / 452.2 MB, free: 3.867 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.741e-05/0.08709, allocations: 28 kB / 452.3 MB, free: 3.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.813e-05/0.08715, allocations: 48 kB / 452.3 MB, free: 3.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.747e-05/0.08716, allocations: 39.86 kB / 452.3 MB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/0.08718, allocations: 39.75 kB / 452.4 MB, free: 3.715 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004138/0.09132, allocations: 3.089 MB / 455.5 MB, free: 336 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.09157, allocations: 175.5 kB / 455.6 MB, free: 160 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-05/0.09165, allocations: 47.98 kB / 455.7 MB, free: 112 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006655/0.09231, allocations: 195.8 kB / 455.9 MB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.09261, allocations: 223.2 kB / 456.1 MB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.444e-05/0.09266, allocations: 56 kB / 456.2 MB, free: 15.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002101/0.09287, allocations: 283.1 kB / 456.4 MB, free: 15.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09287, allocations: 0 / 456.4 MB, free: 15.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000641/0.09351, allocations: 232 kB / 456.7 MB, free: 15.14 MB / 442.7 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.004224/0.09773, allocations: 3.689 MB / 460.3 MB, free: 11.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003341/0.1011, allocations: 2.194 MB / 462.5 MB, free: 8.941 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1011, allocations: 0 / 462.5 MB, free: 8.941 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.103, allocations: 1.067 MB / 463.6 MB, free: 7.879 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/0.1038, allocations: 157.3 kB / 463.8 MB, free: 7.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.151/0.2548, allocations: 12.44 MB / 476.2 MB, free: 98.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.255, allocations: 327.9 kB / 476.5 MB, free: 98.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006866/0.2557, allocations: 200.2 kB / 476.7 MB, free: 98.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/0.2562, allocations: 221.2 kB / 476.9 MB, free: 98.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.974e-06/0.2562, allocations: 0 / 476.9 MB, free: 98.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.2926, allocations: 24.06 MB / 0.4892 GB, free: 93.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.039/7.332, allocations: 1.156 kB / 0.4893 GB, free: 93.7 MB / 442.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/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: 9.229372646659613]