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.00179/0.00179, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001877/0.001877, allocations: 202.2 kB / 24.52 MB, free: 4.156 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.2234/0.2234, allocations: 46.94 MB / 361.7 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="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.002019/0.002019, allocations: 64.08 kB / 0.4969 GB, free: 7.941 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3056, allocations: 66.05 MB / 0.5614 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003781/0.3094, allocations: 2.428 MB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.3113, allocations: 0.9835 MB / 0.5647 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.3115, allocations: 15.81 kB / 0.5648 GB, free: 1.062 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004409/0.312, allocations: 123.2 kB / 0.5649 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002528/0.3122, allocations: 95.33 kB / 0.565 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007685/0.313, allocations: 291.5 kB / 0.5653 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000913/0.3139, allocations: 0.7211 MB / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.3141, allocations: 51.08 kB / 0.566 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004595/0.3146, allocations: 307 kB / 0.5663 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.315, allocations: 342.7 kB / 0.5666 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.3151, allocations: 60 kB / 0.5667 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.344e-05/0.3152, allocations: 60 kB / 0.5667 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.3154, allocations: 195.4 kB / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002413/0.3157, allocations: 246.7 kB / 0.5672 GB, free: 14.6 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005887/0.3163, allocations: 0.5525 MB / 0.5677 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3163, allocations: 0 / 0.5677 GB, free: 14.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3163, allocations: 0 / 0.5677 GB, free: 14.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3163, allocations: 0 / 0.5677 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.002401/0.3187, allocations: 0.8753 MB / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3187, allocations: 12.03 kB / 0.5686 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.354e-05/0.3188, allocations: 8.844 kB / 0.5686 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.3189, allocations: 86.72 kB / 0.5687 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.319, allocations: 76.53 kB / 0.5687 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006521/0.3197, allocations: 317 kB / 0.569 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00062/0.3203, allocations: 0.6708 MB / 0.5697 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.654e-05/0.3204, allocations: 44.12 kB / 0.5697 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002174/0.3225, allocations: 0.8047 MB / 0.5705 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.3226, allocations: 7.922 kB / 0.5705 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.3226, allocations: 16 kB / 0.5705 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3226, allocations: 12 kB / 0.5705 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003819/0.3265, allocations: 1.2 MB / 0.5717 GB, free: 9.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.3296, allocations: 2.003 MB / 0.5737 GB, free: 7.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003245/0.3328, allocations: 0.7738 MB / 0.5744 GB, free: 6.805 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.3345, allocations: 453.9 kB / 0.5749 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.135e-05/0.3345, allocations: 11.94 kB / 0.5749 GB, free: 6.344 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.3346, allocations: 38.55 kB / 0.5749 GB, free: 6.297 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.926e-06/0.3346, allocations: 0 / 0.5749 GB, free: 6.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.09268/0.4272, allocations: 15.48 MB / 0.59 GB, free: 6.723 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.4273, allocations: 94.05 kB / 0.5901 GB, free: 6.613 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006598/0.428, allocations: 393.5 kB / 0.5905 GB, free: 6.219 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002514/0.4283, allocations: 41.7 kB / 0.5905 GB, free: 6.172 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.4285, allocations: 221.6 kB / 0.5907 GB, free: 5.949 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005581/0.429, allocations: 424.4 kB / 0.5911 GB, free: 5.531 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006466/0.4297, allocations: 198.9 kB / 0.5913 GB, free: 5.328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002656/0.4299, allocations: 374.8 kB / 0.5917 GB, free: 4.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004267/0.4342, allocations: 1.342 MB / 0.593 GB, free: 3.613 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004335/0.4385, allocations: 1.493 MB / 0.5945 GB, free: 2.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00759/0.4461, allocations: 2.443 MB / 0.5968 GB, free: 15.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4461, allocations: 4 kB / 0.5969 GB, free: 15.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008658/0.4548, allocations: 2.824 MB / 0.5996 GB, free: 12.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.4548, allocations: 10.48 kB / 0.5996 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.4548, allocations: 4 kB / 0.5996 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/0.4549, allocations: 8 kB / 0.5996 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002887/0.4578, allocations: 415.5 kB / 0.6 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/0.4578, allocations: 11.94 kB / 0.6 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.4598, allocations: 219.7 kB / 0.6002 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.46, allocations: 39.98 kB / 0.6003 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.0005659/0.4606, allocations: 231.7 kB / 0.6005 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/0.4608, allocations: 63.56 kB / 0.6006 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002943/0.4611, allocations: 112.7 kB / 0.6007 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.4611, allocations: 19.94 kB / 0.6007 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.4612, allocations: 0 / 0.6007 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.4612, allocations: 7.969 kB / 0.6007 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01281/0.474, allocations: 5.204 MB / 0.6058 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.622e-05/0.474, allocations: 20 kB / 0.6058 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/0.4757, allocations: 355.9 kB / 0.6061 GB, free: 5.719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-05/0.4757, allocations: 28 kB / 0.6062 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.4758, allocations: 52 kB / 0.6062 GB, free: 5.641 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.945e-05/0.4758, allocations: 39.86 kB / 0.6063 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.701e-05/0.4759, allocations: 35.81 kB / 0.6063 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007941/0.4838, allocations: 3.095 MB / 0.6093 GB, free: 2.164 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004612/0.4843, allocations: 163.5 kB / 0.6095 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.4844, allocations: 59.91 kB / 0.6095 GB, free: 1.945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/0.4858, allocations: 191.8 kB / 0.6097 GB, free: 1.758 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/0.4862, allocations: 215.2 kB / 0.6099 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.4864, allocations: 59.98 kB / 0.61 GB, free: 1.488 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003198/0.4867, allocations: 259.2 kB / 0.6102 GB, free: 1.234 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4867, allocations: 4 kB / 0.6102 GB, free: 1.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001068/0.4877, allocations: 232 kB / 0.6104 GB, free: 1.004 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.00876/0.4965, allocations: 3.679 MB / 0.614 GB, free: 13.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006961/0.5035, allocations: 2.16 MB / 0.6161 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-05/0.5035, allocations: 0 / 0.6161 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003779/0.5073, allocations: 1.051 MB / 0.6172 GB, free: 9.809 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.5087, allocations: 154.9 kB / 0.6173 GB, free: 9.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03134/0.54, allocations: 12.38 MB / 0.6294 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000969/0.541, allocations: 0.932 MB / 0.6303 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001168/0.5421, allocations: 210.2 kB / 0.6305 GB, free: 11.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000737/0.5429, allocations: 219.4 kB / 0.6307 GB, free: 11.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.292e-06/0.5429, allocations: 0 / 0.6307 GB, free: 11.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07678/0.6197, allocations: 22.89 MB / 0.6531 GB, free: 4.438 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.57, allocations: 4 kB / 0.6531 GB, free: 4.434 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.722883159003686]