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.001278/0.001278, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001481/0.001481, allocations: 210.5 kB / 23.73 MB, free: 4.523 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2402/0.2402, allocations: 46.97 MB / 360.9 MB, free: 4.004 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.001974/0.001974, allocations: 67.89 kB / 0.4961 GB, free: 7.695 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3787, allocations: 66.04 MB / 0.5606 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003876/0.3826, allocations: 2.253 MB / 0.5628 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.3845, allocations: 0.933 MB / 0.5637 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.3847, allocations: 15.88 kB / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004055/0.3851, allocations: 123.2 kB / 0.5638 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.3854, allocations: 103.3 kB / 0.5639 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007598/0.3861, allocations: 291.5 kB / 0.5642 GB, free: 492 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008937/0.387, allocations: 0.7249 MB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.3872, allocations: 43.08 kB / 0.565 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.3875, allocations: 291.1 kB / 0.5652 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005133/0.3881, allocations: 354.7 kB / 0.5656 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.3882, allocations: 64 kB / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.923e-05/0.3883, allocations: 60 kB / 0.5657 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.3885, allocations: 207.4 kB / 0.5659 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.3887, allocations: 207 kB / 0.5661 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007018/0.3894, allocations: 0.572 MB / 0.5666 GB, free: 13.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3894, allocations: 4 kB / 0.5666 GB, free: 13.97 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3894, allocations: 0 / 0.5666 GB, free: 13.97 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.3895, allocations: 0 / 0.5666 GB, free: 13.97 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.002482/0.3919, allocations: 0.8792 MB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.392, allocations: 8.031 kB / 0.5675 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.3921, allocations: 90.7 kB / 0.5676 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.3922, allocations: 68.61 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007223/0.393, allocations: 325 kB / 0.568 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007355/0.3937, allocations: 0.6669 MB / 0.5686 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3938, allocations: 48.36 kB / 0.5687 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.396, allocations: 0.8163 MB / 0.5695 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.396, allocations: 8 kB / 0.5695 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.3961, allocations: 19.94 kB / 0.5695 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3961, allocations: 8 kB / 0.5695 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00362/0.3997, allocations: 1.208 MB / 0.5707 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003119/0.4029, allocations: 1.902 MB / 0.5725 GB, free: 7.605 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002735/0.4056, allocations: 0.7536 MB / 0.5733 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.4071, allocations: 474.4 kB / 0.5737 GB, free: 6.367 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-05/0.4072, allocations: 4.562 kB / 0.5737 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.4072, allocations: 43.62 kB / 0.5738 GB, free: 6.312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.206e-06/0.4072, allocations: 0 / 0.5738 GB, free: 6.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09121/0.4984, allocations: 15.54 MB / 0.5889 GB, free: 6.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.4985, allocations: 94.05 kB / 0.589 GB, free: 6.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000631/0.4992, allocations: 421.4 kB / 0.5894 GB, free: 6.148 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.4994, allocations: 45.7 kB / 0.5895 GB, free: 6.098 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.4996, allocations: 217.6 kB / 0.5897 GB, free: 5.879 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005067/0.5001, allocations: 432.3 kB / 0.5901 GB, free: 5.453 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006271/0.5007, allocations: 202.9 kB / 0.5903 GB, free: 5.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.5009, allocations: 366.8 kB / 0.5906 GB, free: 4.879 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003744/0.5047, allocations: 1.353 MB / 0.592 GB, free: 3.527 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/0.5088, allocations: 1.513 MB / 0.5934 GB, free: 1.965 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006662/0.5155, allocations: 2.451 MB / 0.5958 GB, free: 15.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.5155, allocations: 0 / 0.5958 GB, free: 15.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.007966/0.5235, allocations: 2.859 MB / 0.5986 GB, free: 12.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.5235, allocations: 4 kB / 0.5986 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.5235, allocations: 8.188 kB / 0.5986 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.5236, allocations: 12 kB / 0.5987 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002811/0.5264, allocations: 403.4 kB / 0.599 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-05/0.5264, allocations: 15.88 kB / 0.5991 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.5285, allocations: 223.7 kB / 0.5993 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/0.5286, allocations: 40 kB / 0.5993 GB, free: 11.91 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.000521/0.5292, allocations: 233.9 kB / 0.5995 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.5294, allocations: 67.58 kB / 0.5996 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002593/0.5297, allocations: 112.7 kB / 0.5997 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.5297, allocations: 16 kB / 0.5997 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.5297, allocations: 7.875 kB / 0.5997 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.5297, allocations: 3.984 kB / 0.5997 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.5415, allocations: 4.85 MB / 0.6045 GB, free: 6.285 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.819e-05/0.5415, allocations: 20 kB / 0.6045 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.543, allocations: 360.3 kB / 0.6048 GB, free: 5.914 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.79e-05/0.5431, allocations: 24 kB / 0.6048 GB, free: 5.891 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.5432, allocations: 48 kB / 0.6049 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.54e-05/0.5432, allocations: 43.8 kB / 0.6049 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-05/0.5432, allocations: 35.88 kB / 0.605 GB, free: 5.766 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007357/0.5506, allocations: 3.153 MB / 0.608 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005691/0.5511, allocations: 159.5 kB / 0.6082 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.5513, allocations: 55.97 kB / 0.6083 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.5526, allocations: 195.8 kB / 0.6084 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004814/0.5531, allocations: 223.2 kB / 0.6087 GB, free: 1.691 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.5532, allocations: 60 kB / 0.6087 GB, free: 1.633 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000423/0.5536, allocations: 283.1 kB / 0.609 GB, free: 1.355 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5536, allocations: 0 / 0.609 GB, free: 1.355 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001099/0.5547, allocations: 235.9 kB / 0.6092 GB, free: 1.125 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.008197/0.5629, allocations: 3.727 MB / 0.6128 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006465/0.5694, allocations: 2.179 MB / 0.615 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.072e-05/0.5694, allocations: 4 kB / 0.615 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003563/0.573, allocations: 1.07 MB / 0.616 GB, free: 9.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.5744, allocations: 144 kB / 0.6162 GB, free: 9.699 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02836/0.6028, allocations: 12.49 MB / 0.6284 GB, free: 12.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.6033, allocations: 333.6 kB / 0.6287 GB, free: 12.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001136/0.6044, allocations: 210.1 kB / 0.6289 GB, free: 11.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007551/0.6052, allocations: 219.4 kB / 0.6291 GB, free: 11.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.522e-06/0.6052, allocations: 0 / 0.6291 GB, free: 11.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06199/0.6672, allocations: 24.23 MB / 0.6528 GB, free: 3.727 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.47, allocations: 7.281 kB / 0.6528 GB, free: 3.723 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 & /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: 15.514345083996886]