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.00131/0.00131, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001439/0.001439, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.511/1.511, allocations: 230.6 MB / 254.1 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.2295/0.2295, allocations: 46.92 MB / 357.1 MB, free: 10.31 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.001895/0.001895, allocations: 63.91 kB / 0.4909 GB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1317, allocations: 66 MB / 0.5554 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003687/0.1353, allocations: 2.414 MB / 0.5577 GB, free: 3.422 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.1371, allocations: 0.9864 MB / 0.5587 GB, free: 2.43 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.1373, allocations: 15.81 kB / 0.5587 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003871/0.1377, allocations: 115.3 kB / 0.5588 GB, free: 2.301 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.1379, allocations: 107.3 kB / 0.5589 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.1385, allocations: 287.5 kB / 0.5592 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007867/0.1393, allocations: 0.7171 MB / 0.5599 GB, free: 1.195 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.1395, allocations: 49.06 kB / 0.5599 GB, free: 1.145 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.1399, allocations: 303 kB / 0.5602 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.1403, allocations: 338.7 kB / 0.5605 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.796e-05/0.1404, allocations: 60 kB / 0.5606 GB, free: 468 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.71e-05/0.1405, allocations: 64 kB / 0.5607 GB, free: 404 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/0.1407, allocations: 199.4 kB / 0.5609 GB, free: 204 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.1409, allocations: 238.8 kB / 0.5611 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.1416, allocations: 0.5563 MB / 0.5616 GB, free: 15.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1416, allocations: 0 / 0.5616 GB, free: 15.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1416, allocations: 0 / 0.5616 GB, free: 15.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1416, allocations: 0 / 0.5616 GB, free: 15.41 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.002397/0.144, allocations: 0.9543 MB / 0.5626 GB, free: 14.4 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.144, allocations: 8.031 kB / 0.5626 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.1442, allocations: 86.72 kB / 0.5626 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1443, allocations: 68.61 kB / 0.5627 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007009/0.145, allocations: 383.3 kB / 0.5631 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004303/0.1454, allocations: 267.7 kB / 0.5633 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.1455, allocations: 40.38 kB / 0.5634 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.1478, allocations: 0.8163 MB / 0.5642 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.1478, allocations: 0 / 0.5642 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.264e-05/0.1479, allocations: 16 kB / 0.5642 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.1479, allocations: 15.94 kB / 0.5642 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003885/0.1518, allocations: 1.2 MB / 0.5654 GB, free: 11.39 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003255/0.155, allocations: 2.024 MB / 0.5673 GB, free: 9.285 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003266/0.1583, allocations: 0.7713 MB / 0.5681 GB, free: 8.496 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.16, allocations: 454.4 kB / 0.5685 GB, free: 8.047 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.396e-05/0.1601, allocations: 15.98 kB / 0.5686 GB, free: 8.031 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.1601, allocations: 42.5 kB / 0.5686 GB, free: 7.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 2.345e-06/0.1601, allocations: 0 / 0.5686 GB, free: 7.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09309/0.2532, allocations: 15.77 MB / 0.584 GB, free: 8.031 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.42e-05/0.2533, allocations: 98.16 kB / 0.5841 GB, free: 7.914 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.2538, allocations: 389.5 kB / 0.5845 GB, free: 7.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002354/0.2541, allocations: 49.7 kB / 0.5845 GB, free: 7.469 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.2543, allocations: 225.5 kB / 0.5847 GB, free: 7.242 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004883/0.2548, allocations: 420.4 kB / 0.5851 GB, free: 6.828 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006046/0.2554, allocations: 198.8 kB / 0.5853 GB, free: 6.625 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000237/0.2556, allocations: 374.8 kB / 0.5857 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/0.2596, allocations: 1.338 MB / 0.587 GB, free: 4.914 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004195/0.2638, allocations: 1.505 MB / 0.5884 GB, free: 3.363 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00759/0.2714, allocations: 2.437 MB / 0.5908 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.2714, allocations: 4 kB / 0.5908 GB, free: 0.875 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.276/0.5474, allocations: 2.825 MB / 0.5936 GB, free: 37.17 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.5474, allocations: 6.812 kB / 0.5936 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5475, allocations: 3.281 kB / 0.5936 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.809e-05/0.5475, allocations: 12.47 kB / 0.5936 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/0.5504, allocations: 409.2 kB / 0.594 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.937e-05/0.5504, allocations: 17.45 kB / 0.594 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/0.5526, allocations: 216.2 kB / 0.5942 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.5528, allocations: 41.86 kB / 0.5943 GB, free: 37.17 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.0004649/0.5532, allocations: 232.5 kB / 0.5945 GB, free: 37.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000231/0.5535, allocations: 64.64 kB / 0.5945 GB, free: 37.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.5537, allocations: 110.9 kB / 0.5947 GB, free: 37.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.5537, allocations: 16.12 kB / 0.5947 GB, free: 37.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.5537, allocations: 3.156 kB / 0.5947 GB, free: 37.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.5538, allocations: 7.328 kB / 0.5947 GB, free: 37.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.5662, allocations: 5.232 MB / 0.5998 GB, free: 35.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.611e-05/0.5662, allocations: 21.61 kB / 0.5998 GB, free: 35.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.5679, allocations: 359.4 kB / 0.6002 GB, free: 34.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-05/0.5679, allocations: 26.94 kB / 0.6002 GB, free: 34.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.984e-05/0.568, allocations: 44.53 kB / 0.6002 GB, free: 34.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.48e-05/0.568, allocations: 39.94 kB / 0.6003 GB, free: 34.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.73e-05/0.5681, allocations: 35.75 kB / 0.6003 GB, free: 34.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007646/0.5757, allocations: 3.098 MB / 0.6033 GB, free: 33.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005362/0.5762, allocations: 243.3 kB / 0.6035 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.5764, allocations: 48.16 kB / 0.6036 GB, free: 33.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.5778, allocations: 193.6 kB / 0.6038 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005255/0.5783, allocations: 217.5 kB / 0.604 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.5785, allocations: 60.16 kB / 0.604 GB, free: 32.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003935/0.5789, allocations: 267.6 kB / 0.6043 GB, free: 32.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5789, allocations: 0 / 0.6043 GB, free: 32.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001075/0.58, allocations: 228.8 kB / 0.6045 GB, free: 32.73 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.00763/0.5876, allocations: 3.681 MB / 0.6081 GB, free: 30.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006894/0.5945, allocations: 2.165 MB / 0.6102 GB, free: 29.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.72e-05/0.5945, allocations: 3.219 kB / 0.6102 GB, free: 29.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003602/0.5981, allocations: 1.052 MB / 0.6113 GB, free: 29.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.5995, allocations: 151.6 kB / 0.6114 GB, free: 29.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/0.6248, allocations: 12.39 MB / 0.6235 GB, free: 21.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.6251, allocations: 0.9238 MB / 0.6244 GB, free: 20.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000938/0.626, allocations: 211.2 kB / 0.6246 GB, free: 20.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006793/0.6267, allocations: 223.4 kB / 0.6248 GB, free: 20 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6267, allocations: 0 / 0.6248 GB, free: 20 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04702/0.6737, allocations: 21.7 MB / 0.646 GB, free: 14.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.209/9.883, allocations: 6.172 kB / 0.646 GB, free: 14.41 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598444 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.csv","/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: 12.995723939005984]