Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001643/0.001643, 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.001712/0.001712, allocations: 206.1 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.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.223/0.223, allocations: 44.91 MB / 359.6 MB, free: 6.312 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00313/0.00313, allocations: 63.91 kB / 0.4938 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3434, allocations: 65.48 MB / 0.5578 GB, free: 7.422 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004177/0.3475, allocations: 2.435 MB / 0.5602 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.3496, allocations: 0.9758 MB / 0.5611 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.3498, allocations: 15.81 kB / 0.5611 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004123/0.3502, allocations: 127.2 kB / 0.5612 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.3505, allocations: 99.33 kB / 0.5613 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008079/0.3513, allocations: 283.5 kB / 0.5616 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009209/0.3522, allocations: 0.7288 MB / 0.5623 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.3524, allocations: 55.06 kB / 0.5624 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004406/0.3528, allocations: 303 kB / 0.5627 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/0.3533, allocations: 342.7 kB / 0.563 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.3534, allocations: 60 kB / 0.5631 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.151e-05/0.3535, allocations: 60 kB / 0.5631 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002185/0.3537, allocations: 199.4 kB / 0.5633 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002442/0.3539, allocations: 238.8 kB / 0.5635 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006571/0.3546, allocations: 0.5525 MB / 0.5641 GB, free: 1.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3546, allocations: 8 kB / 0.5641 GB, free: 1.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3546, allocations: 0 / 0.5641 GB, free: 1.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.3546, allocations: 0 / 0.5641 GB, free: 1.211 MB / 398.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.002449/0.3571, allocations: 0.8714 MB / 0.5649 GB, free: 316 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.3571, allocations: 8.031 kB / 0.5649 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.268e-05/0.3571, allocations: 12.84 kB / 0.5649 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.3573, allocations: 90.7 kB / 0.565 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.3574, allocations: 68.61 kB / 0.5651 GB, free: 128 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006703/0.3581, allocations: 309.1 kB / 0.5654 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006692/0.3587, allocations: 0.6747 MB / 0.5661 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.3588, allocations: 48.05 kB / 0.5661 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.3611, allocations: 0.8008 MB / 0.5669 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.3611, allocations: 7.938 kB / 0.5669 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.3612, allocations: 24 kB / 0.5669 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3612, allocations: 8 kB / 0.5669 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003915/0.3651, allocations: 1.204 MB / 0.5681 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003203/0.3683, allocations: 2.003 MB / 0.57 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003258/0.3716, allocations: 0.776 MB / 0.5708 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.3732, allocations: 453.8 kB / 0.5712 GB, free: 9.527 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.529e-05/0.3733, allocations: 11.94 kB / 0.5713 GB, free: 9.516 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.3733, allocations: 42.56 kB / 0.5713 GB, free: 9.465 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 3.596e-06/0.3733, allocations: 0 / 0.5713 GB, free: 9.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.09468/0.468, allocations: 15.47 MB / 0.5864 GB, free: 9.898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.4681, allocations: 98.05 kB / 0.5865 GB, free: 9.785 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006919/0.4688, allocations: 393.5 kB / 0.5869 GB, free: 9.391 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003236/0.4691, allocations: 45.7 kB / 0.5869 GB, free: 9.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002553/0.4694, allocations: 225.5 kB / 0.5871 GB, free: 9.113 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006973/0.4701, allocations: 412.5 kB / 0.5875 GB, free: 8.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000843/0.4709, allocations: 206.8 kB / 0.5877 GB, free: 8.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.4712, allocations: 370.8 kB / 0.5881 GB, free: 8.125 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004179/0.4754, allocations: 1.341 MB / 0.5894 GB, free: 6.785 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004366/0.4797, allocations: 1.497 MB / 0.5908 GB, free: 5.238 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007845/0.4876, allocations: 2.436 MB / 0.5932 GB, free: 2.762 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.4876, allocations: 0 / 0.5932 GB, free: 2.762 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.009315/0.4969, allocations: 2.831 MB / 0.596 GB, free: 15.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.4969, allocations: 8 kB / 0.596 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.4969, allocations: 4 kB / 0.596 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.497, allocations: 8 kB / 0.596 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003048/0.5, allocations: 415.5 kB / 0.5964 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.025e-05/0.5, allocations: 8 kB / 0.5964 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002195/0.5022, allocations: 219.7 kB / 0.5966 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/0.5025, allocations: 39.94 kB / 0.5967 GB, free: 15.23 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.0005886/0.503, allocations: 239.7 kB / 0.5969 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.5033, allocations: 63.62 kB / 0.5969 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003018/0.5036, allocations: 108.7 kB / 0.597 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.5036, allocations: 15.94 kB / 0.5971 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.5037, allocations: 4 kB / 0.5971 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.5037, allocations: 7.922 kB / 0.5971 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.5167, allocations: 5.2 MB / 0.6021 GB, free: 9.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.098e-05/0.5167, allocations: 20 kB / 0.6022 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/0.5185, allocations: 360.2 kB / 0.6025 GB, free: 8.891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-05/0.5185, allocations: 28 kB / 0.6025 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.5186, allocations: 48 kB / 0.6026 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.822e-05/0.5187, allocations: 39.86 kB / 0.6026 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.459e-05/0.5187, allocations: 35.88 kB / 0.6027 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008386/0.5271, allocations: 3.095 MB / 0.6057 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000509/0.5276, allocations: 171.5 kB / 0.6058 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.5278, allocations: 51.98 kB / 0.6059 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.5293, allocations: 191.7 kB / 0.6061 GB, free: 4.938 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000505/0.5298, allocations: 227.1 kB / 0.6063 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.5299, allocations: 56 kB / 0.6063 GB, free: 4.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003705/0.5302, allocations: 271.1 kB / 0.6066 GB, free: 4.395 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5302, allocations: 0 / 0.6066 GB, free: 4.395 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001261/0.5315, allocations: 228 kB / 0.6068 GB, free: 4.172 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.009076/0.5406, allocations: 3.675 MB / 0.6104 GB, free: 196 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007138/0.5477, allocations: 2.152 MB / 0.6125 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.621e-05/0.5477, allocations: 4 kB / 0.6125 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003783/0.5515, allocations: 1.047 MB / 0.6135 GB, free: 12.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.553, allocations: 157 kB / 0.6137 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0306/0.5836, allocations: 12.38 MB / 0.6258 GB, free: 15.72 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.5847, allocations: 0.932 MB / 0.6267 GB, free: 14.76 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001419/0.5861, allocations: 210 kB / 0.6269 GB, free: 14.55 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008436/0.5869, allocations: 219.3 kB / 0.6271 GB, free: 14.34 MB / 478.1 MB Notification: Performance of SimCode: time 2.043e-06/0.5869, allocations: 4 kB / 0.6271 GB, free: 14.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05668/0.6436, allocations: 22.89 MB / 0.6495 GB, free: 7.613 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.59, allocations: 10.25 kB / 0.6495 GB, free: 7.605 MB / 494.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.75690143596148]