Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001798/0.001798, allocations: 111.7 kB / 17.08 MB, free: 5.992 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.002378/0.002378, allocations: 191.7 kB / 20.02 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 227.9 MB, free: 4.332 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3405/0.3405, allocations: 43.5 MB / 320.8 MB, free: 9.012 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 72.36 kB / 450 MB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3003, allocations: 57.79 MB / 0.4959 GB, free: 19.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003163/0.3035, allocations: 2.41 MB / 0.4982 GB, free: 17.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3051, allocations: 0.9793 MB / 0.4992 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.3053, allocations: 8.562 kB / 0.4992 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.3056, allocations: 119.7 kB / 0.4993 GB, free: 16.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.3059, allocations: 101.1 kB / 0.4994 GB, free: 16.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.3064, allocations: 284.5 kB / 0.4997 GB, free: 16.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007116/0.3072, allocations: 0.723 MB / 0.5004 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3074, allocations: 71.98 kB / 0.5005 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.3077, allocations: 301 kB / 0.5008 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.308, allocations: 334.2 kB / 0.5011 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.3081, allocations: 60.66 kB / 0.5011 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.3082, allocations: 64.16 kB / 0.5012 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.3084, allocations: 184.4 kB / 0.5014 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.3086, allocations: 244.2 kB / 0.5016 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005036/0.3091, allocations: 0.5612 MB / 0.5021 GB, free: 14.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3091, allocations: 0 / 0.5021 GB, free: 14.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3091, allocations: 0 / 0.5021 GB, free: 14.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.3092, allocations: 0 / 0.5021 GB, free: 14.68 MB / 382.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.002244/0.3114, allocations: 0.9505 MB / 0.5031 GB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3115, allocations: 13.48 kB / 0.5031 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.326e-05/0.3115, allocations: 90.95 kB / 0.5032 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.3117, allocations: 62.53 kB / 0.5032 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.3122, allocations: 390.9 kB / 0.5036 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/0.3125, allocations: 266.1 kB / 0.5039 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.559e-05/0.3126, allocations: 47.05 kB / 0.5039 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/0.3146, allocations: 0.8094 MB / 0.5047 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.3147, allocations: 5.031 kB / 0.5047 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.579e-05/0.3148, allocations: 20.81 kB / 0.5047 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.3148, allocations: 13.45 kB / 0.5047 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003601/0.3184, allocations: 1.198 MB / 0.5059 GB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.3209, allocations: 2.043 MB / 0.5079 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003099/0.324, allocations: 0.83 MB / 0.5087 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.3255, allocations: 495.5 kB / 0.5092 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.573e-05/0.3256, allocations: 8.938 kB / 0.5092 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.3256, allocations: 50.5 kB / 0.5092 GB, free: 9.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.955e-06/0.3256, allocations: 0 / 0.5092 GB, free: 9.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.08858/0.4142, allocations: 15.77 MB / 0.5246 GB, free: 12.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.4143, allocations: 94.17 kB / 0.5247 GB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005697/0.4149, allocations: 389.5 kB / 0.5251 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001994/0.4151, allocations: 45.7 kB / 0.5251 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.4153, allocations: 221.6 kB / 0.5254 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004861/0.4158, allocations: 424.3 kB / 0.5258 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006506/0.4165, allocations: 206.8 kB / 0.526 GB, free: 10.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4167, allocations: 370.8 kB / 0.5263 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004101/0.4208, allocations: 1.345 MB / 0.5276 GB, free: 9.203 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004248/0.425, allocations: 1.49 MB / 0.5291 GB, free: 7.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007484/0.4325, allocations: 2.434 MB / 0.5315 GB, free: 5.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.4326, allocations: 4 kB / 0.5315 GB, free: 5.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008962/0.4415, allocations: 2.842 MB / 0.5342 GB, free: 2.332 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.4416, allocations: 8 kB / 0.5342 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.4416, allocations: 0 / 0.5342 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.671e-05/0.4417, allocations: 12 kB / 0.5343 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/0.4447, allocations: 403.6 kB / 0.5346 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.326e-05/0.4448, allocations: 15.92 kB / 0.5347 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/0.447, allocations: 223.7 kB / 0.5349 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/0.4473, allocations: 36 kB / 0.5349 GB, free: 1.648 MB / 398.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.0005612/0.4478, allocations: 245.7 kB / 0.5351 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002636/0.4481, allocations: 67.56 kB / 0.5352 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.4484, allocations: 108.7 kB / 0.5353 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.4484, allocations: 12 kB / 0.5353 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.4485, allocations: 3.938 kB / 0.5353 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.4485, allocations: 3.984 kB / 0.5353 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/0.4621, allocations: 5.236 MB / 0.5404 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.426e-05/0.4622, allocations: 20 kB / 0.5405 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001682/0.4639, allocations: 355.5 kB / 0.5408 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.478e-05/0.464, allocations: 31.94 kB / 0.5408 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.4641, allocations: 52 kB / 0.5409 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.583e-05/0.4641, allocations: 39.86 kB / 0.5409 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.557e-05/0.4642, allocations: 31.88 kB / 0.5409 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008294/0.4725, allocations: 3.095 MB / 0.544 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004901/0.473, allocations: 236.6 kB / 0.5442 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.4732, allocations: 51.98 kB / 0.5442 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.4748, allocations: 191.8 kB / 0.5444 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000542/0.4753, allocations: 223.2 kB / 0.5446 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.4755, allocations: 59.98 kB / 0.5447 GB, free: 6.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003768/0.4759, allocations: 259.2 kB / 0.5449 GB, free: 6.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4759, allocations: 0 / 0.5449 GB, free: 6.695 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001135/0.477, allocations: 232 kB / 0.5452 GB, free: 6.469 MB / 414.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.008782/0.4858, allocations: 3.699 MB / 0.5488 GB, free: 2.465 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007267/0.4931, allocations: 2.387 MB / 0.5511 GB, free: 80 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.038e-05/0.4932, allocations: 4 kB / 0.5511 GB, free: 76 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00382/0.497, allocations: 1.063 MB / 0.5521 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.4985, allocations: 156 kB / 0.5523 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03091/0.5295, allocations: 12.37 MB / 0.5644 GB, free: 1.766 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008047/0.5303, allocations: 0.9204 MB / 0.5653 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001278/0.5316, allocations: 206.2 kB / 0.5655 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008171/0.5325, allocations: 227.3 kB / 0.5657 GB, free: 400 kB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5325, allocations: 0 / 0.5657 GB, free: 400 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05735/0.5898, allocations: 21.7 MB / 0.5869 GB, free: 10.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.646/10.24, allocations: 7.875 kB / 0.5869 GB, free: 10.61 MB / 462.1 MB " [Timeout remaining time 650] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.160093110986054]