Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001231/0.001231, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 212.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 46.94 MB / 361.6 MB, free: 3.926 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002402/0.002402, allocations: 75.88 kB / 0.4969 GB, free: 7.559 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3143, allocations: 66.08 MB / 0.5614 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003579/0.3178, allocations: 2.247 MB / 0.5636 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.3195, allocations: 0.9446 MB / 0.5645 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.3197, allocations: 7.938 kB / 0.5646 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003372/0.32, allocations: 119.2 kB / 0.5647 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.3202, allocations: 99.33 kB / 0.5648 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005865/0.3208, allocations: 291.6 kB / 0.565 GB, free: 300 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007674/0.3216, allocations: 0.7288 MB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.3217, allocations: 51.08 kB / 0.5658 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.322, allocations: 291.1 kB / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004333/0.3225, allocations: 354.7 kB / 0.5664 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.3226, allocations: 64 kB / 0.5665 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.787e-05/0.3227, allocations: 60 kB / 0.5665 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.3229, allocations: 203.4 kB / 0.5667 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.3231, allocations: 211 kB / 0.5669 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005905/0.3237, allocations: 0.572 MB / 0.5675 GB, free: 13.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3237, allocations: 4 kB / 0.5675 GB, free: 13.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3237, allocations: 0 / 0.5675 GB, free: 13.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.3237, allocations: 4 kB / 0.5675 GB, free: 13.77 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.002226/0.3259, allocations: 0.8753 MB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.326, allocations: 8.031 kB / 0.5684 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.457e-05/0.326, allocations: 8.844 kB / 0.5684 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.963e-05/0.3261, allocations: 90.72 kB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.3262, allocations: 68.61 kB / 0.5685 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005429/0.3267, allocations: 325 kB / 0.5688 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005788/0.3273, allocations: 0.6669 MB / 0.5695 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.3274, allocations: 48.12 kB / 0.5695 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.3295, allocations: 0.8125 MB / 0.5703 GB, free: 10.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.3295, allocations: 7.922 kB / 0.5703 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/0.3295, allocations: 20 kB / 0.5703 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.3296, allocations: 15.94 kB / 0.5704 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003447/0.333, allocations: 1.216 MB / 0.5715 GB, free: 9.371 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/0.3358, allocations: 1.898 MB / 0.5734 GB, free: 7.391 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.3384, allocations: 0.752 MB / 0.5741 GB, free: 6.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.3399, allocations: 470.4 kB / 0.5746 GB, free: 6.156 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.754e-05/0.3399, allocations: 12.5 kB / 0.5746 GB, free: 6.145 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.34, allocations: 39.62 kB / 0.5746 GB, free: 6.098 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.485e-06/0.34, allocations: 4 kB / 0.5746 GB, free: 6.094 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09429/0.4342, allocations: 15.54 MB / 0.5898 GB, free: 6.461 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.102e-05/0.4343, allocations: 94.05 kB / 0.5899 GB, free: 6.352 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/0.4351, allocations: 405.6 kB / 0.5903 GB, free: 5.945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002515/0.4353, allocations: 45.7 kB / 0.5903 GB, free: 5.895 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.4355, allocations: 229.5 kB / 0.5906 GB, free: 5.664 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005554/0.4361, allocations: 416.4 kB / 0.5909 GB, free: 5.254 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007938/0.4369, allocations: 202.8 kB / 0.5911 GB, free: 5.047 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002559/0.4372, allocations: 374.8 kB / 0.5915 GB, free: 4.672 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005592/0.4427, allocations: 1.353 MB / 0.5928 GB, free: 3.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003919/0.4467, allocations: 1.508 MB / 0.5943 GB, free: 1.766 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006461/0.4531, allocations: 2.463 MB / 0.5967 GB, free: 15.26 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4531, allocations: 0 / 0.5967 GB, free: 15.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00748/0.4606, allocations: 2.851 MB / 0.5995 GB, free: 12.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.4606, allocations: 8 kB / 0.5995 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.4606, allocations: 4 kB / 0.5995 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.4607, allocations: 12.25 kB / 0.5995 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002606/0.4633, allocations: 407.3 kB / 0.5999 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.089e-05/0.4633, allocations: 19.92 kB / 0.5999 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.4652, allocations: 215.7 kB / 0.6001 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/0.4654, allocations: 47.98 kB / 0.6002 GB, free: 11.7 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.0004878/0.4658, allocations: 231.2 kB / 0.6004 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.4661, allocations: 67.52 kB / 0.6004 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.4663, allocations: 112.7 kB / 0.6006 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.4663, allocations: 15.94 kB / 0.6006 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.4663, allocations: 4 kB / 0.6006 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.4663, allocations: 7.969 kB / 0.6006 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.4776, allocations: 4.846 MB / 0.6053 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.466e-05/0.4776, allocations: 20 kB / 0.6053 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.479, allocations: 356.2 kB / 0.6057 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.991e-05/0.4791, allocations: 28 kB / 0.6057 GB, free: 5.688 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.4792, allocations: 52 kB / 0.6058 GB, free: 5.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.891e-05/0.4792, allocations: 39.86 kB / 0.6058 GB, free: 5.598 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.751e-05/0.4792, allocations: 39.8 kB / 0.6058 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007055/0.4863, allocations: 3.149 MB / 0.6089 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004083/0.4867, allocations: 171.5 kB / 0.6091 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.4868, allocations: 51.98 kB / 0.6091 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.4881, allocations: 191.8 kB / 0.6093 GB, free: 1.703 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004484/0.4885, allocations: 227.2 kB / 0.6095 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/0.4886, allocations: 60 kB / 0.6096 GB, free: 1.422 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003321/0.4889, allocations: 279.1 kB / 0.6098 GB, free: 1.148 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4889, allocations: 3.938 kB / 0.6098 GB, free: 1.145 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009991/0.4899, allocations: 236 kB / 0.6101 GB, free: 0.9141 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.007558/0.4975, allocations: 3.723 MB / 0.6137 GB, free: 12.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005946/0.5034, allocations: 2.183 MB / 0.6158 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.28e-05/0.5035, allocations: 4 kB / 0.6158 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003258/0.5067, allocations: 1.067 MB / 0.6169 GB, free: 9.633 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.508, allocations: 150.3 kB / 0.617 GB, free: 9.488 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02665/0.5346, allocations: 12.49 MB / 0.6292 GB, free: 12.26 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.5351, allocations: 333.6 kB / 0.6295 GB, free: 11.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.5361, allocations: 206.1 kB / 0.6297 GB, free: 11.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007451/0.5368, allocations: 215.4 kB / 0.6299 GB, free: 11.49 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5368, allocations: 0 / 0.6299 GB, free: 11.49 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04969/0.5865, allocations: 23.86 MB / 0.6532 GB, free: 3.816 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.38, allocations: 19.84 kB / 0.6533 GB, free: 3.797 MB / 494.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.270555366994813]