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.001656/0.001656, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002037/0.002037, allocations: 208.4 kB / 23.73 MB, free: 4.387 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.622/1.622, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2208/0.2208, allocations: 44.94 MB / 358.9 MB, free: 6.027 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="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: 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.002118/0.002118, allocations: 63.91 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3085, allocations: 65.47 MB / 0.557 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003762/0.3123, allocations: 2.251 MB / 0.5592 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.3141, allocations: 0.9407 MB / 0.5601 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001597/0.3142, allocations: 7.938 kB / 0.5601 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.3146, allocations: 119.2 kB / 0.5602 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002478/0.3148, allocations: 103.3 kB / 0.5603 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006719/0.3155, allocations: 295.5 kB / 0.5606 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007642/0.3163, allocations: 0.721 MB / 0.5613 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.3164, allocations: 47.08 kB / 0.5613 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003776/0.3168, allocations: 299.1 kB / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004251/0.3172, allocations: 322.7 kB / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.3173, allocations: 60 kB / 0.562 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.3174, allocations: 64 kB / 0.562 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.3177, allocations: 199.4 kB / 0.5622 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.3179, allocations: 207 kB / 0.5624 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005892/0.3185, allocations: 0.572 MB / 0.563 GB, free: 1.324 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3185, allocations: 0 / 0.563 GB, free: 1.324 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3185, allocations: 0 / 0.563 GB, free: 1.324 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3185, allocations: 4 kB / 0.563 GB, free: 1.32 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.002385/0.3209, allocations: 0.883 MB / 0.5638 GB, free: 416 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3209, allocations: 16.02 kB / 0.5639 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001302/0.321, allocations: 86.72 kB / 0.5639 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.3212, allocations: 64.61 kB / 0.564 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000768/0.3219, allocations: 317.2 kB / 0.5643 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000692/0.3226, allocations: 0.6708 MB / 0.565 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.687e-05/0.3227, allocations: 40.36 kB / 0.565 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002256/0.325, allocations: 0.8241 MB / 0.5658 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.325, allocations: 4 kB / 0.5658 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-05/0.3251, allocations: 16 kB / 0.5658 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.3251, allocations: 12 kB / 0.5658 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003902/0.329, allocations: 1.212 MB / 0.567 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00319/0.3322, allocations: 1.894 MB / 0.5689 GB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.3351, allocations: 0.7652 MB / 0.5696 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.3368, allocations: 466.4 kB / 0.5701 GB, free: 9.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.849e-05/0.3368, allocations: 8.562 kB / 0.5701 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.654e-05/0.3369, allocations: 47.62 kB / 0.5701 GB, free: 9.668 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.346e-06/0.3369, allocations: 0 / 0.5701 GB, free: 9.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.08928/0.4262, allocations: 15.54 MB / 0.5853 GB, free: 10.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.4263, allocations: 98.03 kB / 0.5854 GB, free: 9.914 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/0.4268, allocations: 413.5 kB / 0.5858 GB, free: 9.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.427, allocations: 45.7 kB / 0.5858 GB, free: 9.449 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.4272, allocations: 217.6 kB / 0.586 GB, free: 9.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004394/0.4276, allocations: 432.3 kB / 0.5864 GB, free: 8.805 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005513/0.4282, allocations: 194.9 kB / 0.5866 GB, free: 8.605 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.4284, allocations: 374.8 kB / 0.587 GB, free: 8.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003935/0.4323, allocations: 1.357 MB / 0.5883 GB, free: 6.875 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004172/0.4365, allocations: 1.509 MB / 0.5898 GB, free: 5.316 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007352/0.4438, allocations: 2.447 MB / 0.5922 GB, free: 2.828 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.4439, allocations: 0 / 0.5922 GB, free: 2.828 MB / 430.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008411/0.4523, allocations: 2.855 MB / 0.595 GB, free: 15.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.4523, allocations: 8 kB / 0.595 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.4523, allocations: 7.938 kB / 0.595 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/0.4523, allocations: 12.25 kB / 0.595 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.4551, allocations: 407.4 kB / 0.5954 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.789e-05/0.4551, allocations: 15.88 kB / 0.5954 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.4573, allocations: 219.7 kB / 0.5956 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.4574, allocations: 47.98 kB / 0.5956 GB, free: 15.26 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: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,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 (150): * Single equations (assignments): 150 * 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.0005508/0.458, allocations: 233.9 kB / 0.5959 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.4582, allocations: 71.55 kB / 0.5959 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002803/0.4585, allocations: 108.7 kB / 0.596 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.4585, allocations: 12 kB / 0.5961 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/0.4586, allocations: 3.938 kB / 0.5961 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.4586, allocations: 7.984 kB / 0.5961 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01259/0.4712, allocations: 4.853 MB / 0.6008 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.751e-05/0.4712, allocations: 20 kB / 0.6008 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.4727, allocations: 356.1 kB / 0.6012 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.438e-05/0.4728, allocations: 28 kB / 0.6012 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.4729, allocations: 48 kB / 0.6012 GB, free: 9.195 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.985e-05/0.4729, allocations: 43.8 kB / 0.6013 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-05/0.4729, allocations: 35.86 kB / 0.6013 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008136/0.4811, allocations: 3.143 MB / 0.6044 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/0.4816, allocations: 167.5 kB / 0.6045 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.4818, allocations: 55.92 kB / 0.6046 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.4831, allocations: 195.8 kB / 0.6048 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004547/0.4836, allocations: 219.2 kB / 0.605 GB, free: 5.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.4e-05/0.4837, allocations: 60 kB / 0.605 GB, free: 4.988 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000376/0.484, allocations: 287.1 kB / 0.6053 GB, free: 4.703 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.484, allocations: 0 / 0.6053 GB, free: 4.703 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001004/0.4851, allocations: 235.9 kB / 0.6055 GB, free: 4.473 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * 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.008471/0.4935, allocations: 3.723 MB / 0.6092 GB, free: 456 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006884/0.5004, allocations: 2.19 MB / 0.6113 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.578e-05/0.5004, allocations: 4 kB / 0.6113 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003808/0.5042, allocations: 1.065 MB / 0.6124 GB, free: 13.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.5058, allocations: 152.1 kB / 0.6125 GB, free: 13.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02952/0.5353, allocations: 12.48 MB / 0.6247 GB, free: 15.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.5357, allocations: 333.6 kB / 0.625 GB, free: 15.47 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.5369, allocations: 202.1 kB / 0.6252 GB, free: 15.27 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000722/0.5376, allocations: 223.4 kB / 0.6254 GB, free: 15.05 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5376, allocations: 0 / 0.6254 GB, free: 15.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05929/0.5969, allocations: 23.91 MB / 0.6488 GB, free: 7.402 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.71, allocations: 3.094 kB / 0.6488 GB, free: 7.402 MB / 494.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_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.csv","/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: 15.977702922187746]