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.001982/0.001982, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002904/0.002904, allocations: 213.5 kB / 23.73 MB, free: 4.16 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.591/1.591, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2291/0.2291, allocations: 44.94 MB / 358.8 MB, free: 6.031 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.002093/0.002093, allocations: 63.91 kB / 0.493 GB, free: 10.51 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3645, allocations: 65.47 MB / 0.557 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004151/0.3687, allocations: 2.251 MB / 0.5592 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.3707, allocations: 0.9407 MB / 0.5601 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.3709, allocations: 11.88 kB / 0.5601 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004172/0.3713, allocations: 115.3 kB / 0.5602 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.3716, allocations: 103.3 kB / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007673/0.3724, allocations: 299.5 kB / 0.5606 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008423/0.3732, allocations: 0.7171 MB / 0.5613 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.3734, allocations: 55.06 kB / 0.5613 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003921/0.3738, allocations: 287.1 kB / 0.5616 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004286/0.3742, allocations: 322.7 kB / 0.5619 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.3743, allocations: 64 kB / 0.562 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.3744, allocations: 60 kB / 0.562 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.3747, allocations: 199.4 kB / 0.5622 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.3749, allocations: 211 kB / 0.5624 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006033/0.3755, allocations: 0.572 MB / 0.563 GB, free: 1.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3755, allocations: 4 kB / 0.563 GB, free: 1.297 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3755, allocations: 0 / 0.563 GB, free: 1.297 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.3755, allocations: 0 / 0.563 GB, free: 1.297 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.002523/0.378, allocations: 0.8889 MB / 0.5639 GB, free: 388 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.3781, allocations: 8.031 kB / 0.5639 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.3782, allocations: 86.72 kB / 0.5639 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.3783, allocations: 72.61 kB / 0.564 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006791/0.379, allocations: 321.2 kB / 0.5643 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000632/0.3796, allocations: 0.6669 MB / 0.565 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.551e-05/0.3797, allocations: 44.38 kB / 0.565 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002246/0.382, allocations: 0.8163 MB / 0.5658 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.382, allocations: 4 kB / 0.5658 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/0.382, allocations: 19.98 kB / 0.5658 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.3821, allocations: 15.98 kB / 0.5658 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004007/0.3861, allocations: 1.208 MB / 0.567 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003495/0.3896, allocations: 1.902 MB / 0.5689 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002912/0.3925, allocations: 0.7545 MB / 0.5696 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.3941, allocations: 466.4 kB / 0.5701 GB, free: 9.703 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.607e-05/0.3942, allocations: 8.562 kB / 0.5701 GB, free: 9.695 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.3942, allocations: 43.62 kB / 0.5701 GB, free: 9.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.546e-06/0.3942, allocations: 0 / 0.5701 GB, free: 9.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.08992/0.4842, allocations: 15.54 MB / 0.5853 GB, free: 10 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.475e-05/0.4842, allocations: 94.05 kB / 0.5854 GB, free: 9.895 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006054/0.4849, allocations: 413.5 kB / 0.5858 GB, free: 9.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001982/0.485, allocations: 45.7 kB / 0.5858 GB, free: 9.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.4852, allocations: 225.5 kB / 0.586 GB, free: 9.203 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004755/0.4857, allocations: 424.3 kB / 0.5864 GB, free: 8.785 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005578/0.4863, allocations: 202.9 kB / 0.5866 GB, free: 8.578 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.4865, allocations: 370.8 kB / 0.587 GB, free: 8.207 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00404/0.4905, allocations: 1.357 MB / 0.5883 GB, free: 6.852 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004509/0.495, allocations: 1.505 MB / 0.5898 GB, free: 5.297 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007574/0.5026, allocations: 2.455 MB / 0.5922 GB, free: 2.801 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.5026, allocations: 4 kB / 0.5922 GB, free: 2.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.0084/0.511, allocations: 2.855 MB / 0.595 GB, free: 15.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.511, allocations: 8 kB / 0.595 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.5111, allocations: 256 / 0.595 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.5111, allocations: 12 kB / 0.595 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/0.514, allocations: 407.4 kB / 0.5954 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.389e-05/0.514, allocations: 11.94 kB / 0.5954 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/0.5162, allocations: 223.7 kB / 0.5956 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/0.5163, allocations: 47.92 kB / 0.5957 GB, free: 15.23 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.0005485/0.5169, allocations: 237.9 kB / 0.5959 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.5171, allocations: 67.58 kB / 0.5959 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.5174, allocations: 112.7 kB / 0.5961 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.5174, allocations: 12 kB / 0.5961 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.5174, allocations: 3.938 kB / 0.5961 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.5175, allocations: 7.969 kB / 0.5961 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.5306, allocations: 4.842 MB / 0.6008 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.932e-05/0.5306, allocations: 24 kB / 0.6008 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/0.5322, allocations: 360.2 kB / 0.6012 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.263e-05/0.5322, allocations: 28 kB / 0.6012 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.5323, allocations: 44 kB / 0.6012 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.492e-05/0.5324, allocations: 39.86 kB / 0.6013 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.322e-05/0.5324, allocations: 35.88 kB / 0.6013 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008346/0.5407, allocations: 3.147 MB / 0.6044 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006172/0.5414, allocations: 163.5 kB / 0.6045 GB, free: 5.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.5415, allocations: 55.92 kB / 0.6046 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.5429, allocations: 191.8 kB / 0.6048 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004681/0.5434, allocations: 235.1 kB / 0.605 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.5435, allocations: 56 kB / 0.6051 GB, free: 4.961 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003806/0.5438, allocations: 283.1 kB / 0.6053 GB, free: 4.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5438, allocations: 0 / 0.6053 GB, free: 4.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001024/0.5449, allocations: 228 kB / 0.6055 GB, free: 4.457 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.008779/0.5536, allocations: 3.734 MB / 0.6092 GB, free: 432 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007029/0.5607, allocations: 2.183 MB / 0.6113 GB, free: 14.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.521e-05/0.5607, allocations: 0 / 0.6113 GB, free: 14.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003853/0.5645, allocations: 1.074 MB / 0.6124 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.566, allocations: 145.2 kB / 0.6125 GB, free: 13.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03041/0.5964, allocations: 12.49 MB / 0.6247 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.5968, allocations: 333.6 kB / 0.625 GB, free: 15.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001107/0.5979, allocations: 205.9 kB / 0.6252 GB, free: 15.24 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007504/0.5987, allocations: 223.4 kB / 0.6254 GB, free: 15.03 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5987, allocations: 0 / 0.6254 GB, free: 15.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05973/0.6584, allocations: 23.9 MB / 0.6488 GB, free: 7.383 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.9, allocations: 12.02 kB / 0.6488 GB, free: 7.379 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 & /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: 16.088483728002757]