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.001314/0.001314, allocations: 113.2 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.00149/0.00149, allocations: 212.8 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.679/1.679, 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.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.2454/0.2454, allocations: 46.93 MB / 360.9 MB, free: 4.285 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="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.002021/0.002021, allocations: 67.91 kB / 0.4962 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.327, allocations: 66.02 MB / 0.5606 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004029/0.331, allocations: 2.431 MB / 0.563 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.333, allocations: 0.9913 MB / 0.564 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.3332, allocations: 15.81 kB / 0.564 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004168/0.3336, allocations: 123.2 kB / 0.5641 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000231/0.3338, allocations: 87.39 kB / 0.5642 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007519/0.3346, allocations: 291.5 kB / 0.5645 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008586/0.3354, allocations: 0.7211 MB / 0.5652 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.3356, allocations: 51.08 kB / 0.5652 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.336, allocations: 311 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004563/0.3364, allocations: 346.6 kB / 0.5659 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.099e-05/0.3365, allocations: 60 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.836e-05/0.3366, allocations: 60 kB / 0.566 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.3368, allocations: 191.4 kB / 0.5661 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.3371, allocations: 242.7 kB / 0.5664 GB, free: 14.6 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006341/0.3377, allocations: 0.5564 MB / 0.5669 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3377, allocations: 4 kB / 0.5669 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3377, allocations: 0 / 0.5669 GB, free: 14.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.3377, allocations: 0 / 0.5669 GB, free: 14.04 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.002351/0.3401, allocations: 0.8752 MB / 0.5678 GB, free: 13.13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.3401, allocations: 12.03 kB / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.3402, allocations: 90.7 kB / 0.5679 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3403, allocations: 68.61 kB / 0.5679 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007412/0.3411, allocations: 317 kB / 0.5682 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00067/0.3418, allocations: 0.6669 MB / 0.5689 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3419, allocations: 44.38 kB / 0.5689 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.344, allocations: 0.8124 MB / 0.5697 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.344, allocations: 4 kB / 0.5697 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.3441, allocations: 16 kB / 0.5698 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.3441, allocations: 8 kB / 0.5698 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003437/0.3475, allocations: 1.2 MB / 0.5709 GB, free: 9.691 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003199/0.3507, allocations: 1.995 MB / 0.5729 GB, free: 7.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003074/0.3538, allocations: 0.7777 MB / 0.5736 GB, free: 6.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.3552, allocations: 449.9 kB / 0.5741 GB, free: 6.375 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.602e-05/0.3553, allocations: 11.98 kB / 0.5741 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.3554, allocations: 50.44 kB / 0.5741 GB, free: 6.305 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.956e-06/0.3554, allocations: 4 kB / 0.5741 GB, free: 6.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.09161/0.447, allocations: 15.47 MB / 0.5892 GB, free: 6.734 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/0.4471, allocations: 94.05 kB / 0.5893 GB, free: 6.625 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005436/0.4476, allocations: 389.5 kB / 0.5897 GB, free: 6.234 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001764/0.4478, allocations: 49.7 kB / 0.5897 GB, free: 6.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.448, allocations: 221.5 kB / 0.59 GB, free: 5.957 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004441/0.4484, allocations: 412.5 kB / 0.5904 GB, free: 5.551 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005636/0.449, allocations: 210.8 kB / 0.5906 GB, free: 5.336 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002219/0.4492, allocations: 370.7 kB / 0.5909 GB, free: 4.965 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003764/0.453, allocations: 1.349 MB / 0.5922 GB, free: 3.617 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003895/0.4569, allocations: 1.486 MB / 0.5937 GB, free: 2.082 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006805/0.4637, allocations: 2.447 MB / 0.5961 GB, free: 15.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4637, allocations: 0 / 0.5961 GB, free: 15.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008138/0.4718, allocations: 2.835 MB / 0.5988 GB, free: 12.74 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.4718, allocations: 8 kB / 0.5988 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4719, allocations: 7.938 kB / 0.5988 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.852e-05/0.4719, allocations: 8 kB / 0.5989 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/0.4748, allocations: 403.6 kB / 0.5992 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.791e-05/0.4748, allocations: 11.94 kB / 0.5993 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.4768, allocations: 219.7 kB / 0.5995 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.477, allocations: 43.98 kB / 0.5995 GB, free: 12.05 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.000519/0.4775, allocations: 231.6 kB / 0.5997 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.4777, allocations: 59.62 kB / 0.5998 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.478, allocations: 112.7 kB / 0.5999 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.478, allocations: 12 kB / 0.5999 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.478, allocations: 3.938 kB / 0.5999 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.4781, allocations: 11.97 kB / 0.5999 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.4905, allocations: 5.196 MB / 0.605 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.11e-05/0.4905, allocations: 24 kB / 0.605 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.4921, allocations: 356 kB / 0.6054 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.863e-05/0.4921, allocations: 24 kB / 0.6054 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.4922, allocations: 51.94 kB / 0.6054 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.201e-05/0.4922, allocations: 39.86 kB / 0.6055 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.649e-05/0.4923, allocations: 31.88 kB / 0.6055 GB, free: 5.586 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00758/0.4998, allocations: 3.106 MB / 0.6085 GB, free: 2.172 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.5003, allocations: 163.5 kB / 0.6087 GB, free: 2.012 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.5005, allocations: 47.97 kB / 0.6087 GB, free: 1.965 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.5018, allocations: 191.8 kB / 0.6089 GB, free: 1.777 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004811/0.5022, allocations: 227.1 kB / 0.6091 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.582e-05/0.5023, allocations: 56 kB / 0.6092 GB, free: 1.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003241/0.5027, allocations: 263.2 kB / 0.6094 GB, free: 1.242 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5027, allocations: 0 / 0.6094 GB, free: 1.242 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009855/0.5037, allocations: 228 kB / 0.6097 GB, free: 1.02 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.007704/0.5114, allocations: 3.683 MB / 0.6132 GB, free: 13.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006415/0.5178, allocations: 2.159 MB / 0.6154 GB, free: 10.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-05/0.5178, allocations: 4 kB / 0.6154 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003463/0.5213, allocations: 1.047 MB / 0.6164 GB, free: 9.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.5226, allocations: 170 kB / 0.6165 GB, free: 9.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02779/0.5504, allocations: 12.38 MB / 0.6286 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007168/0.5511, allocations: 0.9281 MB / 0.6295 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001055/0.5522, allocations: 206 kB / 0.6297 GB, free: 11.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007309/0.5529, allocations: 219.4 kB / 0.6299 GB, free: 11.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5529, allocations: 0 / 0.6299 GB, free: 11.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06244/0.6154, allocations: 22.86 MB / 0.6523 GB, free: 4.461 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/13.08, allocations: 4 kB / 0.6523 GB, free: 4.457 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598444 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.csv","/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.442313050996745]