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.001571/0.001571, allocations: 117.2 kB / 18.49 MB, free: 4.66 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.001438/0.001438, allocations: 205.5 kB / 21.45 MB, free: 1.715 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.55/1.55, 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.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.271/0.271, allocations: 44.91 MB / 355.8 MB, free: 12.31 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.002074/0.002074, allocations: 71.91 kB / 0.4885 GB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1455, allocations: 65.42 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004253/0.1498, allocations: 2.422 MB / 0.5548 GB, free: 7.699 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1519, allocations: 0.9747 MB / 0.5557 GB, free: 6.719 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.152, allocations: 11.88 kB / 0.5558 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004381/0.1525, allocations: 127.2 kB / 0.5559 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.1527, allocations: 99.33 kB / 0.556 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/0.1534, allocations: 291.1 kB / 0.5563 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008906/0.1543, allocations: 0.721 MB / 0.557 GB, free: 5.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.1545, allocations: 61.27 kB / 0.557 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004226/0.1549, allocations: 299 kB / 0.5573 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005001/0.1554, allocations: 346.7 kB / 0.5576 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.1556, allocations: 60 kB / 0.5577 GB, free: 4.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.955e-05/0.1557, allocations: 60 kB / 0.5577 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.1559, allocations: 187.4 kB / 0.5579 GB, free: 4.484 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002702/0.1562, allocations: 246.7 kB / 0.5582 GB, free: 4.242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007104/0.1569, allocations: 0.5564 MB / 0.5587 GB, free: 3.684 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1569, allocations: 0 / 0.5587 GB, free: 3.684 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1569, allocations: 0 / 0.5587 GB, free: 3.684 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1569, allocations: 0 / 0.5587 GB, free: 3.684 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.002589/0.1595, allocations: 0.9466 MB / 0.5596 GB, free: 2.688 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1595, allocations: 12.03 kB / 0.5596 GB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.541e-05/0.1595, allocations: 8.75 kB / 0.5596 GB, free: 2.668 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.1597, allocations: 86.72 kB / 0.5597 GB, free: 2.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.1598, allocations: 76.53 kB / 0.5598 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006769/0.1605, allocations: 379.4 kB / 0.5602 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004192/0.1609, allocations: 259.7 kB / 0.5604 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.161, allocations: 52.06 kB / 0.5605 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/0.1633, allocations: 0.8047 MB / 0.5612 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.1633, allocations: 3.938 kB / 0.5613 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.1634, allocations: 16 kB / 0.5613 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.1634, allocations: 12 kB / 0.5613 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003896/0.1673, allocations: 1.196 MB / 0.5624 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.1707, allocations: 2.035 MB / 0.5644 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003329/0.174, allocations: 0.7719 MB / 0.5652 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.1757, allocations: 450.4 kB / 0.5656 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-05/0.1758, allocations: 23.92 kB / 0.5656 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.1758, allocations: 38.56 kB / 0.5657 GB, free: 12.25 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 2.675e-06/0.1758, allocations: 0 / 0.5657 GB, free: 12.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09478/0.2706, allocations: 15.78 MB / 0.5811 GB, free: 12.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.2707, allocations: 94.17 kB / 0.5812 GB, free: 12.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.2713, allocations: 385.5 kB / 0.5815 GB, free: 11.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.2715, allocations: 49.7 kB / 0.5816 GB, free: 11.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.2718, allocations: 229.5 kB / 0.5818 GB, free: 11.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005064/0.2723, allocations: 416.4 kB / 0.5822 GB, free: 11.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006211/0.2729, allocations: 198.9 kB / 0.5824 GB, free: 10.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002131/0.2731, allocations: 370.8 kB / 0.5828 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003965/0.2771, allocations: 1.349 MB / 0.5841 GB, free: 9.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004164/0.2812, allocations: 1.493 MB / 0.5855 GB, free: 7.641 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007647/0.2889, allocations: 2.445 MB / 0.5879 GB, free: 5.148 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/0.2889, allocations: 4 kB / 0.5879 GB, free: 5.145 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00876/0.2977, allocations: 2.834 MB / 0.5907 GB, free: 2.305 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.2977, allocations: 8 kB / 0.5907 GB, free: 2.297 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2977, allocations: 0 / 0.5907 GB, free: 2.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.431e-05/0.2977, allocations: 11.98 kB / 0.5907 GB, free: 2.285 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/0.3007, allocations: 415.5 kB / 0.5911 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.896e-05/0.3007, allocations: 15.92 kB / 0.5911 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.3029, allocations: 219.7 kB / 0.5913 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/0.3031, allocations: 39.98 kB / 0.5914 GB, free: 1.609 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.0005836/0.3036, allocations: 237.1 kB / 0.5916 GB, free: 1.371 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.3039, allocations: 59.62 kB / 0.5916 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003329/0.3042, allocations: 108.7 kB / 0.5918 GB, free: 1.207 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.3043, allocations: 15.94 kB / 0.5918 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.3043, allocations: 0 / 0.5918 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.3043, allocations: 7.969 kB / 0.5918 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2901/0.5944, allocations: 5.226 MB / 0.5969 GB, free: 40.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.121e-05/0.5944, allocations: 21.02 kB / 0.5969 GB, free: 40.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/0.5961, allocations: 354.7 kB / 0.5972 GB, free: 40.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.664e-05/0.5962, allocations: 27.8 kB / 0.5973 GB, free: 40.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.5963, allocations: 47.23 kB / 0.5973 GB, free: 40.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.481e-05/0.5964, allocations: 41.5 kB / 0.5973 GB, free: 40.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-05/0.5964, allocations: 36.72 kB / 0.5974 GB, free: 40.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008177/0.6046, allocations: 3.096 MB / 0.6004 GB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006712/0.6052, allocations: 238.8 kB / 0.6006 GB, free: 38.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.6054, allocations: 54.8 kB / 0.6007 GB, free: 38.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/0.607, allocations: 190.7 kB / 0.6009 GB, free: 38.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005747/0.6075, allocations: 217.3 kB / 0.6011 GB, free: 38.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/0.6076, allocations: 57.55 kB / 0.6011 GB, free: 38.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003895/0.608, allocations: 265.8 kB / 0.6014 GB, free: 38.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.608, allocations: 4 kB / 0.6014 GB, free: 38.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001077/0.6091, allocations: 227.5 kB / 0.6016 GB, free: 37.99 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.008483/0.6176, allocations: 3.685 MB / 0.6052 GB, free: 35.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007287/0.6249, allocations: 2.166 MB / 0.6073 GB, free: 35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-05/0.6249, allocations: 2.969 kB / 0.6073 GB, free: 35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00385/0.6288, allocations: 1.048 MB / 0.6083 GB, free: 34.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.6306, allocations: 145.8 kB / 0.6085 GB, free: 34.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02786/0.6584, allocations: 12.39 MB / 0.6206 GB, free: 27.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.6588, allocations: 0.9268 MB / 0.6215 GB, free: 26.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009597/0.6598, allocations: 203.4 kB / 0.6217 GB, free: 26.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006789/0.6605, allocations: 219.3 kB / 0.6219 GB, free: 26.62 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6605, allocations: 0 / 0.6219 GB, free: 26.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03926/0.6997, allocations: 21.72 MB / 0.6431 GB, free: 5.438 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.763/10.46, allocations: 12.38 kB / 0.6431 GB, free: 5.43 MB / 446.1 MB " [Timeout remaining time 649] (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: 13.905670689011458]