Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001692/0.001692, allocations: 109 kB / 20.48 MB, free: 1.477 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.002198/0.002198, allocations: 209.7 kB / 23.79 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 207.6 MB / 234.5 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.225/0.225, allocations: 44.24 MB / 331.1 MB, free: 9.527 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002416/0.002416, allocations: 63.91 kB / 468.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1291, allocations: 61.04 MB / 0.5169 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00418/0.1333, allocations: 2.437 MB / 0.5193 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.1354, allocations: 0.999 MB / 0.5203 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003109/0.1357, allocations: 15.81 kB / 0.5203 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004497/0.1362, allocations: 119.2 kB / 0.5204 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003227/0.1365, allocations: 107.3 kB / 0.5205 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008525/0.1373, allocations: 291.5 kB / 0.5208 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1384, allocations: 0.7291 MB / 0.5215 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.1385, allocations: 37.27 kB / 0.5215 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.1391, allocations: 315 kB / 0.5218 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005558/0.1396, allocations: 342.7 kB / 0.5221 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.1398, allocations: 60 kB / 0.5222 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.1399, allocations: 60 kB / 0.5223 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002352/0.1401, allocations: 199.4 kB / 0.5224 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003196/0.1404, allocations: 242.7 kB / 0.5227 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007436/0.1412, allocations: 0.5642 MB / 0.5232 GB, free: 0.832 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1412, allocations: 3.938 kB / 0.5232 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1412, allocations: 0 / 0.5232 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.701e-05/0.1412, allocations: 0 / 0.5232 GB, free: 0.8281 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.00263/0.1438, allocations: 0.8676 MB / 0.5241 GB, free: 15.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.1439, allocations: 12.03 kB / 0.5241 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.212e-05/0.1439, allocations: 12.84 kB / 0.5241 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001312/0.144, allocations: 90.7 kB / 0.5242 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.1442, allocations: 64.59 kB / 0.5242 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006875/0.1449, allocations: 313 kB / 0.5245 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000665/0.1455, allocations: 0.6747 MB / 0.5252 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.1456, allocations: 44.08 kB / 0.5252 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.148, allocations: 0.8047 MB / 0.526 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.1481, allocations: 11.94 kB / 0.526 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-05/0.1482, allocations: 20 kB / 0.5261 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.1482, allocations: 8 kB / 0.5261 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004061/0.1522, allocations: 1.204 MB / 0.5272 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003658/0.1559, allocations: 2.014 MB / 0.5292 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003509/0.1594, allocations: 0.7738 MB / 0.53 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.1611, allocations: 449.3 kB / 0.5304 GB, free: 9.145 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.632e-05/0.1611, allocations: 11.94 kB / 0.5304 GB, free: 9.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.1612, allocations: 42.56 kB / 0.5304 GB, free: 9.082 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.655e-06/0.1612, allocations: 0 / 0.5304 GB, free: 9.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.2922/0.4534, allocations: 15.46 MB / 0.5455 GB, free: 28.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.4534, allocations: 95.09 kB / 0.5456 GB, free: 27.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004849/0.4539, allocations: 382 kB / 0.546 GB, free: 27.76 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.4542, allocations: 46.64 kB / 0.546 GB, free: 27.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.4543, allocations: 233.5 kB / 0.5463 GB, free: 27.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003962/0.4547, allocations: 418.3 kB / 0.5467 GB, free: 27.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005747/0.4553, allocations: 203.5 kB / 0.5469 GB, free: 27.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.414e-05/0.4554, allocations: 378.2 kB / 0.5472 GB, free: 26.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/0.4591, allocations: 1.341 MB / 0.5485 GB, free: 26.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003916/0.463, allocations: 1.492 MB / 0.55 GB, free: 25.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006986/0.47, allocations: 2.44 MB / 0.5524 GB, free: 24.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.47, allocations: 5.062 kB / 0.5524 GB, free: 24.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008126/0.4781, allocations: 2.826 MB / 0.5551 GB, free: 23.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.4781, allocations: 6.625 kB / 0.5551 GB, free: 23.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.4781, allocations: 8.062 kB / 0.5551 GB, free: 23.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/0.4782, allocations: 11.94 kB / 0.5552 GB, free: 23.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/0.481, allocations: 406.7 kB / 0.5555 GB, free: 23.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.18e-05/0.481, allocations: 12.8 kB / 0.5556 GB, free: 23.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.4831, allocations: 218.6 kB / 0.5558 GB, free: 23.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.4833, allocations: 44.44 kB / 0.5558 GB, free: 23.52 MB / 414.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.0004855/0.4837, allocations: 227.9 kB / 0.556 GB, free: 23.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002339/0.484, allocations: 66.78 kB / 0.5561 GB, free: 23.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.4842, allocations: 115.2 kB / 0.5562 GB, free: 23.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.4842, allocations: 12.53 kB / 0.5562 GB, free: 23.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.05e-05/0.4843, allocations: 1.031 kB / 0.5562 GB, free: 23.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4843, allocations: 9.953 kB / 0.5562 GB, free: 23.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/0.4963, allocations: 5.201 MB / 0.5613 GB, free: 20.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-05/0.4963, allocations: 25.25 kB / 0.5613 GB, free: 20.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.4979, allocations: 356.6 kB / 0.5617 GB, free: 20.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.285e-05/0.498, allocations: 28.91 kB / 0.5617 GB, free: 20.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.4981, allocations: 42.98 kB / 0.5617 GB, free: 20.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.786e-05/0.4981, allocations: 44.39 kB / 0.5618 GB, free: 20.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.015e-05/0.4982, allocations: 30.69 kB / 0.5618 GB, free: 20.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007753/0.5059, allocations: 3.093 MB / 0.5648 GB, free: 19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006684/0.5066, allocations: 161.5 kB / 0.565 GB, free: 18.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.5068, allocations: 56.92 kB / 0.565 GB, free: 18.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/0.5084, allocations: 194.4 kB / 0.5652 GB, free: 18.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004375/0.5088, allocations: 219.6 kB / 0.5654 GB, free: 18.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.5089, allocations: 56.34 kB / 0.5655 GB, free: 18.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000341/0.5093, allocations: 264.2 kB / 0.5657 GB, free: 18.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5093, allocations: 0 / 0.5657 GB, free: 18.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001315/0.5106, allocations: 233.3 kB / 0.566 GB, free: 18.62 MB / 414.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.00796/0.5185, allocations: 3.694 MB / 0.5696 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006998/0.5255, allocations: 2.157 MB / 0.5717 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.589e-05/0.5256, allocations: 6.938 kB / 0.5717 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004203/0.5298, allocations: 1.049 MB / 0.5727 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.5315, allocations: 142.7 kB / 0.5728 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02565/0.5571, allocations: 12.39 MB / 0.5849 GB, free: 3.309 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004528/0.5576, allocations: 0.9248 MB / 0.5858 GB, free: 2.352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.5586, allocations: 217 kB / 0.586 GB, free: 2.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007161/0.5594, allocations: 219.4 kB / 0.5863 GB, free: 1.926 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5594, allocations: 0 / 0.5863 GB, free: 1.926 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05567/0.615, allocations: 23.01 MB / 0.6087 GB, free: 10.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.73, allocations: 15.98 kB / 0.6087 GB, free: 10.89 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 17.07527775701601]