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.001435/0.001435, allocations: 121 kB / 18.5 MB, free: 4.562 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.001358/0.001358, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.482/1.482, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2303/0.2303, allocations: 46.92 MB / 357.8 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="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.002049/0.002049, allocations: 63.91 kB / 0.4916 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1336, allocations: 65.99 MB / 0.5561 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004119/0.1377, allocations: 2.424 MB / 0.5584 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1396, allocations: 0.9825 MB / 0.5594 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003361/0.14, allocations: 15.81 kB / 0.5594 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004611/0.1404, allocations: 119.2 kB / 0.5595 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004009/0.1408, allocations: 107.3 kB / 0.5596 GB, free: 2.156 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008183/0.1417, allocations: 279.6 kB / 0.5599 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.1427, allocations: 0.7132 MB / 0.5606 GB, free: 1.168 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.1429, allocations: 49.06 kB / 0.5606 GB, free: 1.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.1434, allocations: 314.9 kB / 0.5609 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.144, allocations: 342.8 kB / 0.5613 GB, free: 484 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.1442, allocations: 60 kB / 0.5613 GB, free: 424 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.1443, allocations: 60 kB / 0.5614 GB, free: 364 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.1445, allocations: 191.4 kB / 0.5615 GB, free: 172 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.1449, allocations: 242.8 kB / 0.5618 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006897/0.1455, allocations: 0.5563 MB / 0.5623 GB, free: 15.37 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1455, allocations: 0 / 0.5623 GB, free: 15.37 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1455, allocations: 4 kB / 0.5623 GB, free: 15.37 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.1456, allocations: 0 / 0.5623 GB, free: 15.37 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.002588/0.1482, allocations: 0.9466 MB / 0.5633 GB, free: 14.37 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1482, allocations: 8.031 kB / 0.5633 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.093e-05/0.1482, allocations: 8.75 kB / 0.5633 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.1484, allocations: 86.72 kB / 0.5634 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1485, allocations: 64.61 kB / 0.5634 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006441/0.1491, allocations: 395.2 kB / 0.5638 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003996/0.1495, allocations: 267.7 kB / 0.564 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1497, allocations: 44.12 kB / 0.5641 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002258/0.1519, allocations: 0.8047 MB / 0.5649 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.1519, allocations: 0 / 0.5649 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.152, allocations: 16 kB / 0.5649 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.152, allocations: 12 kB / 0.5649 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003882/0.1559, allocations: 1.204 MB / 0.5661 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/0.1592, allocations: 2.035 MB / 0.5681 GB, free: 9.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003305/0.1625, allocations: 0.7661 MB / 0.5688 GB, free: 8.445 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.1641, allocations: 454.4 kB / 0.5692 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.99e-05/0.1642, allocations: 19.86 kB / 0.5693 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.1642, allocations: 34.56 kB / 0.5693 GB, free: 7.934 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 3.857e-06/0.1642, allocations: 0 / 0.5693 GB, free: 7.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09251/0.2567, allocations: 15.77 MB / 0.5847 GB, free: 7.984 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.2568, allocations: 98.11 kB / 0.5848 GB, free: 7.871 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000687/0.2575, allocations: 393.4 kB / 0.5852 GB, free: 7.477 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/0.2577, allocations: 45.7 kB / 0.5852 GB, free: 7.426 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.258, allocations: 225.5 kB / 0.5854 GB, free: 7.199 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005219/0.2585, allocations: 412.4 kB / 0.5858 GB, free: 6.793 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007078/0.2592, allocations: 206.8 kB / 0.586 GB, free: 6.582 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002464/0.2594, allocations: 374.8 kB / 0.5864 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003993/0.2634, allocations: 1.342 MB / 0.5877 GB, free: 4.867 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004341/0.2678, allocations: 1.497 MB / 0.5891 GB, free: 3.324 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0074/0.2752, allocations: 2.445 MB / 0.5915 GB, free: 0.832 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.2752, allocations: 0 / 0.5915 GB, free: 0.832 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2427/0.5179, allocations: 2.823 MB / 0.5943 GB, free: 37.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.5179, allocations: 7.938 kB / 0.5943 GB, free: 37.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.5179, allocations: 5.297 kB / 0.5943 GB, free: 37.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.387e-05/0.5179, allocations: 8.469 kB / 0.5943 GB, free: 37.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002863/0.5208, allocations: 414 kB / 0.5947 GB, free: 37.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-05/0.5208, allocations: 12.36 kB / 0.5947 GB, free: 37.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/0.5229, allocations: 218.6 kB / 0.5949 GB, free: 37.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.523, allocations: 41.69 kB / 0.595 GB, free: 37.13 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.0004528/0.5235, allocations: 236.8 kB / 0.5952 GB, free: 37.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.5237, allocations: 64.67 kB / 0.5953 GB, free: 37.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000294/0.524, allocations: 107 kB / 0.5954 GB, free: 37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.524, allocations: 13.66 kB / 0.5954 GB, free: 37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.524, allocations: 0.6562 kB / 0.5954 GB, free: 37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.524, allocations: 7.219 kB / 0.5954 GB, free: 37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.5359, allocations: 5.23 MB / 0.6005 GB, free: 34.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-05/0.5359, allocations: 28.03 kB / 0.6005 GB, free: 34.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/0.5376, allocations: 360.8 kB / 0.6009 GB, free: 34.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.004e-05/0.5377, allocations: 28.64 kB / 0.6009 GB, free: 34.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.5378, allocations: 51.22 kB / 0.6009 GB, free: 34.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-05/0.5378, allocations: 39.83 kB / 0.601 GB, free: 34.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.208e-05/0.5379, allocations: 31.84 kB / 0.601 GB, free: 34.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007516/0.5454, allocations: 3.089 MB / 0.604 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004762/0.5459, allocations: 243.9 kB / 0.6043 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.546, allocations: 51.25 kB / 0.6043 GB, free: 32.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.5473, allocations: 191.6 kB / 0.6045 GB, free: 32.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005278/0.5478, allocations: 221.3 kB / 0.6047 GB, free: 32.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.548, allocations: 57.36 kB / 0.6047 GB, free: 32.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003654/0.5483, allocations: 265.3 kB / 0.605 GB, free: 32.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5483, allocations: 0 / 0.605 GB, free: 32.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001055/0.5494, allocations: 228 kB / 0.6052 GB, free: 32.69 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.007411/0.5568, allocations: 3.681 MB / 0.6088 GB, free: 30.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006499/0.5633, allocations: 2.161 MB / 0.6109 GB, free: 29.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-05/0.5633, allocations: 3.344 kB / 0.6109 GB, free: 29.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003418/0.5668, allocations: 1.052 MB / 0.612 GB, free: 29.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.5681, allocations: 152.4 kB / 0.6121 GB, free: 29.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02513/0.5933, allocations: 12.39 MB / 0.6242 GB, free: 21.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.5936, allocations: 0.9321 MB / 0.6251 GB, free: 20.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009666/0.5946, allocations: 206.4 kB / 0.6253 GB, free: 20.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006879/0.5953, allocations: 219.4 kB / 0.6255 GB, free: 19.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5953, allocations: 0 / 0.6255 GB, free: 19.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03857/0.6339, allocations: 21.72 MB / 0.6467 GB, free: 14.37 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.705/10.34, allocations: 18.83 kB / 0.6467 GB, free: 14.36 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.468938531004824]