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.001398/0.001398, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00149/0.00149, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.459/1.459, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2398/0.2398, allocations: 46.96 MB / 361.7 MB, free: 4.031 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 75.89 kB / 0.4969 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3172, allocations: 66.02 MB / 0.5613 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003803/0.321, allocations: 2.249 MB / 0.5635 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.3229, allocations: 0.9446 MB / 0.5645 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.323, allocations: 7.938 kB / 0.5645 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.3234, allocations: 119.2 kB / 0.5646 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.3236, allocations: 103.3 kB / 0.5647 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000746/0.3244, allocations: 295.5 kB / 0.565 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008456/0.3252, allocations: 0.7171 MB / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.3254, allocations: 55.06 kB / 0.5657 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.3258, allocations: 287.2 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005048/0.3263, allocations: 362.6 kB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.3264, allocations: 60 kB / 0.5664 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.3266, allocations: 64 kB / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002415/0.3268, allocations: 199.4 kB / 0.5666 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.327, allocations: 211 kB / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006677/0.3277, allocations: 0.572 MB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3277, allocations: 4 kB / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3277, allocations: 0 / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.3277, allocations: 0 / 0.5674 GB, free: 13.99 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.002527/0.3302, allocations: 0.8792 MB / 0.5683 GB, free: 13.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3303, allocations: 8.031 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.276e-05/0.3303, allocations: 8.844 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.3304, allocations: 94.7 kB / 0.5684 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.3305, allocations: 68.61 kB / 0.5684 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.3311, allocations: 313 kB / 0.5687 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006091/0.3318, allocations: 0.6708 MB / 0.5694 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.3319, allocations: 48.12 kB / 0.5694 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.3342, allocations: 0.8241 MB / 0.5702 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.3342, allocations: 3.938 kB / 0.5702 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.815e-05/0.3342, allocations: 19.98 kB / 0.5703 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.3343, allocations: 12 kB / 0.5703 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003882/0.3381, allocations: 1.22 MB / 0.5715 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/0.3414, allocations: 1.899 MB / 0.5733 GB, free: 7.609 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.3443, allocations: 0.7429 MB / 0.574 GB, free: 6.852 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.346, allocations: 466.4 kB / 0.5745 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.23e-05/0.346, allocations: 16.5 kB / 0.5745 GB, free: 6.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.3461, allocations: 43.67 kB / 0.5746 GB, free: 6.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.955e-06/0.3461, allocations: 0 / 0.5746 GB, free: 6.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09374/0.4398, allocations: 15.53 MB / 0.5897 GB, free: 6.695 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/0.4399, allocations: 98.05 kB / 0.5898 GB, free: 6.582 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006432/0.4405, allocations: 409.5 kB / 0.5902 GB, free: 6.172 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002762/0.4408, allocations: 45.7 kB / 0.5902 GB, free: 6.121 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.441, allocations: 225.5 kB / 0.5905 GB, free: 5.895 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000579/0.4416, allocations: 420.4 kB / 0.5909 GB, free: 5.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006581/0.4423, allocations: 206.8 kB / 0.5911 GB, free: 5.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.4425, allocations: 366.8 kB / 0.5914 GB, free: 4.902 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003921/0.4464, allocations: 1.353 MB / 0.5927 GB, free: 3.551 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004128/0.4505, allocations: 1.513 MB / 0.5942 GB, free: 1.988 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007099/0.4576, allocations: 2.447 MB / 0.5966 GB, free: 15.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.4576, allocations: 0 / 0.5966 GB, free: 15.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008312/0.4659, allocations: 2.855 MB / 0.5994 GB, free: 12.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.466, allocations: 4.25 kB / 0.5994 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.466, allocations: 11.94 kB / 0.5994 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.466, allocations: 8 kB / 0.5994 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002796/0.4688, allocations: 415.3 kB / 0.5998 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.4688, allocations: 11.94 kB / 0.5998 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/0.4709, allocations: 219.7 kB / 0.6 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.471, allocations: 47.98 kB / 0.6001 GB, free: 11.93 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.0005463/0.4716, allocations: 241.8 kB / 0.6003 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002437/0.4718, allocations: 67.58 kB / 0.6004 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.4721, allocations: 108.7 kB / 0.6005 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.4721, allocations: 19.94 kB / 0.6005 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.4721, allocations: 3.938 kB / 0.6005 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.4721, allocations: 7.969 kB / 0.6005 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01259/0.4847, allocations: 4.852 MB / 0.6052 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.909e-05/0.4847, allocations: 21 kB / 0.6053 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.4862, allocations: 355.4 kB / 0.6056 GB, free: 5.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-05/0.4863, allocations: 24 kB / 0.6056 GB, free: 5.906 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.4864, allocations: 51.98 kB / 0.6057 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.774e-05/0.4864, allocations: 47.8 kB / 0.6057 GB, free: 5.809 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.75e-05/0.4865, allocations: 35.81 kB / 0.6057 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007974/0.4944, allocations: 3.139 MB / 0.6088 GB, free: 2.332 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005332/0.495, allocations: 167.5 kB / 0.609 GB, free: 2.168 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.4951, allocations: 55.98 kB / 0.609 GB, free: 2.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.4965, allocations: 195.8 kB / 0.6092 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005025/0.497, allocations: 219.2 kB / 0.6094 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.4971, allocations: 60 kB / 0.6095 GB, free: 1.648 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003786/0.4975, allocations: 283.1 kB / 0.6098 GB, free: 1.371 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4975, allocations: 0 / 0.6098 GB, free: 1.371 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001099/0.4986, allocations: 235.9 kB / 0.61 GB, free: 1.141 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.008085/0.5067, allocations: 3.727 MB / 0.6136 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006711/0.5134, allocations: 2.179 MB / 0.6157 GB, free: 10.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.968e-05/0.5134, allocations: 4 kB / 0.6157 GB, free: 10.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003648/0.517, allocations: 1.073 MB / 0.6168 GB, free: 9.855 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.5184, allocations: 147.5 kB / 0.6169 GB, free: 9.715 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02959/0.548, allocations: 12.49 MB / 0.6291 GB, free: 12.49 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.5484, allocations: 329.6 kB / 0.6294 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001193/0.5496, allocations: 209.9 kB / 0.6296 GB, free: 11.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008069/0.5504, allocations: 219.4 kB / 0.6299 GB, free: 11.72 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5504, allocations: 0 / 0.6299 GB, free: 11.72 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05466/0.6051, allocations: 23.87 MB / 0.6532 GB, free: 4.137 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.81, allocations: 8 kB / 0.6532 GB, free: 4.129 MB / 494.1 MB " [Timeout remaining time 646] (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: 16.924680786090903]