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.001367/0.001367, allocations: 123.5 kB / 17.79 MB, free: 5.215 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.00178/0.00178, allocations: 207.3 kB / 20.75 MB, free: 2.266 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.517/1.517, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.2701/0.2701, allocations: 46.92 MB / 357.1 MB, free: 10.3 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.002768/0.002768, allocations: 67.91 kB / 0.4909 GB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1495, allocations: 66 MB / 0.5554 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003877/0.1533, allocations: 2.42 MB / 0.5577 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.1552, allocations: 0.9825 MB / 0.5587 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.1554, allocations: 19.81 kB / 0.5587 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.1558, allocations: 115.3 kB / 0.5588 GB, free: 2.285 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002624/0.156, allocations: 95.33 kB / 0.5589 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.1567, allocations: 291.5 kB / 0.5592 GB, free: 1.906 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008459/0.1576, allocations: 0.7093 MB / 0.5599 GB, free: 1.195 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.1578, allocations: 61.05 kB / 0.5599 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003936/0.1581, allocations: 307 kB / 0.5602 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000442/0.1586, allocations: 342.7 kB / 0.5606 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.1587, allocations: 60 kB / 0.5606 GB, free: 448 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.778e-05/0.1588, allocations: 60 kB / 0.5607 GB, free: 388 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.159, allocations: 191.4 kB / 0.5609 GB, free: 196 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002379/0.1592, allocations: 234.8 kB / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006264/0.1599, allocations: 0.5563 MB / 0.5616 GB, free: 15.4 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1599, allocations: 8 kB / 0.5616 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1599, allocations: 0 / 0.5616 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1599, allocations: 0 / 0.5616 GB, free: 15.39 MB / 430.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.002383/0.1623, allocations: 0.9504 MB / 0.5626 GB, free: 14.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1623, allocations: 12.03 kB / 0.5626 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.1624, allocations: 86.72 kB / 0.5627 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.1625, allocations: 68.61 kB / 0.5627 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006486/0.1632, allocations: 383.3 kB / 0.5631 GB, free: 13.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003965/0.1636, allocations: 259.7 kB / 0.5633 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.67e-05/0.1637, allocations: 44.38 kB / 0.5634 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.1659, allocations: 0.8124 MB / 0.5642 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.1659, allocations: 4 kB / 0.5642 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.288e-05/0.166, allocations: 16 kB / 0.5642 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.166, allocations: 8 kB / 0.5642 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003761/0.1698, allocations: 1.204 MB / 0.5654 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003191/0.173, allocations: 2.031 MB / 0.5674 GB, free: 9.273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003235/0.1762, allocations: 0.7777 MB / 0.5681 GB, free: 8.477 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001799/0.178, allocations: 454.4 kB / 0.5686 GB, free: 8.027 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.424e-05/0.1781, allocations: 7.984 kB / 0.5686 GB, free: 8.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.1781, allocations: 42.5 kB / 0.5686 GB, free: 7.969 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 3.757e-06/0.1781, allocations: 4 kB / 0.5686 GB, free: 7.965 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09359/0.2717, allocations: 15.77 MB / 0.584 GB, free: 8.016 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.2718, allocations: 94.17 kB / 0.5841 GB, free: 7.902 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.2723, allocations: 389.5 kB / 0.5845 GB, free: 7.512 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.2725, allocations: 45.7 kB / 0.5845 GB, free: 7.461 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.2727, allocations: 229.5 kB / 0.5847 GB, free: 7.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004474/0.2731, allocations: 412.4 kB / 0.5851 GB, free: 6.824 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006002/0.2737, allocations: 210.8 kB / 0.5853 GB, free: 6.609 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.274, allocations: 366.8 kB / 0.5857 GB, free: 6.242 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003992/0.278, allocations: 1.349 MB / 0.587 GB, free: 4.895 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004121/0.2821, allocations: 1.493 MB / 0.5885 GB, free: 3.355 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007422/0.2895, allocations: 2.445 MB / 0.5908 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2895, allocations: 0 / 0.5908 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2793/0.5688, allocations: 2.826 MB / 0.5936 GB, free: 37.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.5688, allocations: 7.406 kB / 0.5936 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.5688, allocations: 4.531 kB / 0.5936 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.95e-05/0.5689, allocations: 8.531 kB / 0.5936 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/0.5718, allocations: 407.4 kB / 0.594 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.58e-05/0.5719, allocations: 15.44 kB / 0.594 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/0.5741, allocations: 219.8 kB / 0.5942 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.5743, allocations: 41.39 kB / 0.5943 GB, free: 37.21 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.00052/0.5748, allocations: 235.5 kB / 0.5945 GB, free: 37.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002458/0.575, allocations: 62.69 kB / 0.5946 GB, free: 37.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003024/0.5753, allocations: 112.5 kB / 0.5947 GB, free: 37.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.5753, allocations: 19.95 kB / 0.5947 GB, free: 37.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.5754, allocations: 0 / 0.5947 GB, free: 37.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.5754, allocations: 7.844 kB / 0.5947 GB, free: 37.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.5889, allocations: 5.232 MB / 0.5998 GB, free: 35.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.446e-05/0.5889, allocations: 21.19 kB / 0.5998 GB, free: 35.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.5907, allocations: 354.3 kB / 0.6002 GB, free: 35.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.52e-05/0.5907, allocations: 27.53 kB / 0.6002 GB, free: 35.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.5909, allocations: 49.92 kB / 0.6002 GB, free: 35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.412e-05/0.5909, allocations: 40.17 kB / 0.6003 GB, free: 34.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.225e-05/0.5909, allocations: 35.81 kB / 0.6003 GB, free: 34.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008075/0.599, allocations: 3.093 MB / 0.6033 GB, free: 33.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006506/0.5997, allocations: 242.7 kB / 0.6036 GB, free: 33.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.5998, allocations: 55.09 kB / 0.6036 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.6014, allocations: 189.3 kB / 0.6038 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006044/0.602, allocations: 216.2 kB / 0.604 GB, free: 32.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/0.6021, allocations: 56.34 kB / 0.604 GB, free: 32.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004086/0.6025, allocations: 264.4 kB / 0.6043 GB, free: 32.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6025, allocations: 0 / 0.6043 GB, free: 32.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001265/0.6038, allocations: 232.2 kB / 0.6045 GB, free: 32.77 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.008038/0.6118, allocations: 3.684 MB / 0.6081 GB, free: 30.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006969/0.6188, allocations: 2.165 MB / 0.6102 GB, free: 29.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.053e-05/0.6188, allocations: 2.969 kB / 0.6102 GB, free: 29.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003703/0.6225, allocations: 1.052 MB / 0.6113 GB, free: 29.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.624, allocations: 150.1 kB / 0.6114 GB, free: 29.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02617/0.6502, allocations: 12.39 MB / 0.6235 GB, free: 21.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.6507, allocations: 0.9316 MB / 0.6244 GB, free: 20.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.6517, allocations: 212.4 kB / 0.6246 GB, free: 20.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007338/0.6524, allocations: 219.4 kB / 0.6248 GB, free: 19.99 MB / 446.1 MB Notification: Performance of SimCode: time 1.934e-06/0.6524, allocations: 0 / 0.6248 GB, free: 19.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04705/0.6995, allocations: 21.69 MB / 0.646 GB, free: 14.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.484/10.18, allocations: 1.969 kB / 0.646 GB, free: 14.43 MB / 462.1 MB " [Timeout remaining time 650] (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: 13.358254495076835]