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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 112.8 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.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.2372/0.2372, allocations: 44.92 MB / 349.6 MB, free: 1.723 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.84 kB / 491.8 MB, free: 30.2 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1261, allocations: 64.25 MB / 0.543 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003985/0.1301, allocations: 2.417 MB / 0.5454 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.1319, allocations: 0.9475 MB / 0.5463 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.132, allocations: 11.88 kB / 0.5463 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003914/0.1324, allocations: 119.2 kB / 0.5464 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.1327, allocations: 99.36 kB / 0.5465 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006558/0.1333, allocations: 287 kB / 0.5468 GB, free: 232 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009213/0.1342, allocations: 0.729 MB / 0.5475 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.1344, allocations: 53.14 kB / 0.5475 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003595/0.1348, allocations: 299 kB / 0.5478 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004276/0.1352, allocations: 342.7 kB / 0.5481 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.71e-05/0.1353, allocations: 64 kB / 0.5482 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.894e-05/0.1354, allocations: 60 kB / 0.5483 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002242/0.1356, allocations: 203.4 kB / 0.5485 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.1358, allocations: 238.7 kB / 0.5487 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006192/0.1364, allocations: 0.5525 MB / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1364, allocations: 0 / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1364, allocations: 4 kB / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.1365, allocations: 0 / 0.5492 GB, free: 13.7 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.002306/0.1388, allocations: 0.9621 MB / 0.5502 GB, free: 12.69 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1388, allocations: 8.031 kB / 0.5502 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.1389, allocations: 86.72 kB / 0.5503 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.1391, allocations: 68.61 kB / 0.5503 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006564/0.1397, allocations: 387.4 kB / 0.5507 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003747/0.1401, allocations: 263.6 kB / 0.5509 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.514e-05/0.1402, allocations: 44.38 kB / 0.551 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.1421, allocations: 0.8085 MB / 0.5518 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.1422, allocations: 0 / 0.5518 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.493e-05/0.1422, allocations: 19.98 kB / 0.5518 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.1422, allocations: 12 kB / 0.5518 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003388/0.1456, allocations: 1.2 MB / 0.553 GB, free: 9.684 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003074/0.1487, allocations: 2.027 MB / 0.555 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002867/0.1516, allocations: 0.7777 MB / 0.5557 GB, free: 6.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.1529, allocations: 453.3 kB / 0.5561 GB, free: 6.324 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.831e-05/0.153, allocations: 12 kB / 0.5562 GB, free: 6.312 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.1531, allocations: 46.48 kB / 0.5562 GB, free: 6.258 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.484e-06/0.1531, allocations: 0 / 0.5562 GB, free: 6.258 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.08431/0.2374, allocations: 15.77 MB / 0.5716 GB, free: 6.312 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.2375, allocations: 94.17 kB / 0.5717 GB, free: 6.203 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004912/0.2379, allocations: 389.5 kB / 0.5721 GB, free: 5.809 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.2381, allocations: 45.7 kB / 0.5721 GB, free: 5.758 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.2383, allocations: 225.5 kB / 0.5723 GB, free: 5.531 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.2387, allocations: 420.3 kB / 0.5727 GB, free: 5.117 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000523/0.2392, allocations: 194.9 kB / 0.5729 GB, free: 4.918 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.2394, allocations: 370.8 kB / 0.5733 GB, free: 4.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003477/0.2428, allocations: 1.349 MB / 0.5746 GB, free: 3.199 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003618/0.2465, allocations: 1.49 MB / 0.576 GB, free: 1.664 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006543/0.253, allocations: 2.453 MB / 0.5784 GB, free: 15.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.253, allocations: 0 / 0.5784 GB, free: 15.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007569/0.2606, allocations: 2.842 MB / 0.5812 GB, free: 12.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.2606, allocations: 8 kB / 0.5812 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.2606, allocations: 4 kB / 0.5812 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.2607, allocations: 8.25 kB / 0.5812 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/0.2633, allocations: 403.4 kB / 0.5816 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.448e-05/0.2633, allocations: 11.94 kB / 0.5816 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.2652, allocations: 219.7 kB / 0.5818 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.2654, allocations: 47.98 kB / 0.5819 GB, free: 11.62 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.0005384/0.266, allocations: 234.8 kB / 0.5821 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002585/0.2662, allocations: 63.58 kB / 0.5822 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002716/0.2665, allocations: 108.7 kB / 0.5823 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/0.2665, allocations: 12 kB / 0.5823 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/0.2665, allocations: 3.938 kB / 0.5823 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.2665, allocations: 11.97 kB / 0.5823 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.279, allocations: 5.228 MB / 0.5874 GB, free: 5.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.111e-05/0.279, allocations: 28.03 kB / 0.5874 GB, free: 5.598 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.2806, allocations: 347.4 kB / 0.5878 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.159e-05/0.2806, allocations: 28 kB / 0.5878 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.2807, allocations: 55.98 kB / 0.5878 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-05/0.2808, allocations: 43.8 kB / 0.5879 GB, free: 5.133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.592e-05/0.2808, allocations: 31.88 kB / 0.5879 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007297/0.2881, allocations: 3.091 MB / 0.5909 GB, free: 1.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005158/0.2886, allocations: 236.6 kB / 0.5912 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.2888, allocations: 51.97 kB / 0.5912 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.2901, allocations: 191.8 kB / 0.5914 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004625/0.2905, allocations: 219.2 kB / 0.5916 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.2906, allocations: 59.94 kB / 0.5917 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000337/0.291, allocations: 267.1 kB / 0.5919 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.291, allocations: 0 / 0.5919 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001058/0.292, allocations: 228 kB / 0.5921 GB, free: 476 kB / 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.007942/0.3, allocations: 3.699 MB / 0.5957 GB, free: 12.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006132/0.3061, allocations: 2.16 MB / 0.5978 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.3061, allocations: 4 kB / 0.5979 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003257/0.3094, allocations: 1.051 MB / 0.5989 GB, free: 9.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.3107, allocations: 147.3 kB / 0.599 GB, free: 9.109 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2973/0.608, allocations: 12.37 MB / 0.6111 GB, free: 60.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007094/0.6087, allocations: 0.92 MB / 0.612 GB, free: 59.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001655/0.6104, allocations: 215.6 kB / 0.6122 GB, free: 59.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009877/0.6114, allocations: 218.9 kB / 0.6124 GB, free: 59.93 MB / 462.1 MB Notification: Performance of SimCode: time 1.193e-06/0.6114, allocations: 0 / 0.6124 GB, free: 59.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05852/0.6699, allocations: 21.81 MB / 0.6337 GB, free: 52.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.333/10, allocations: 3.984 kB / 0.6337 GB, free: 52.1 MB / 462.1 MB " [Timeout remaining time 650] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 12.988244943320751]