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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008395/0.0008396, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001115, allocations: 170.8 kB / 16.57 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.4 MB / 222.7 MB, free: 5.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3343/0.3343, allocations: 43.55 MB / 314.6 MB, free: 8.789 MB / 254.1 MB 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.00048/0.0004801, allocations: 12 kB / 384 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 58.86 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00231/0.1151, allocations: 1.995 MB / 444.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.1165, allocations: 0.9409 MB / 445.8 MB, free: 9.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.1167, allocations: 15.88 kB / 445.8 MB, free: 9.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003143/0.117, allocations: 91.52 kB / 445.9 MB, free: 9.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.1172, allocations: 71.58 kB / 446 MB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.1177, allocations: 223.6 kB / 446.2 MB, free: 9.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005888/0.1183, allocations: 0.6237 MB / 446.8 MB, free: 8.977 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.1184, allocations: 65.5 kB / 446.9 MB, free: 8.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.1187, allocations: 263 kB / 447.1 MB, free: 8.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.119, allocations: 298.8 kB / 447.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.1191, allocations: 32 kB / 447.5 MB, free: 8.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.982e-05/0.1192, allocations: 32 kB / 447.5 MB, free: 8.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.1193, allocations: 147.5 kB / 447.6 MB, free: 8.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.59e-05/0.1194, allocations: 89.52 kB / 447.7 MB, free: 8.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.1197, allocations: 391 kB / 448.1 MB, free: 7.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.1198, allocations: 0 / 448.1 MB, free: 7.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1198, allocations: 7.938 kB / 448.1 MB, free: 7.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1198, allocations: 0 / 448.1 MB, free: 7.668 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.001996/0.1218, allocations: 0.9236 MB / 449 MB, free: 6.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1218, allocations: 12.03 kB / 449.1 MB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001187/0.122, allocations: 90.52 kB / 449.1 MB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.1221, allocations: 59.44 kB / 449.2 MB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.1226, allocations: 366 kB / 449.6 MB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003614/0.1229, allocations: 275.1 kB / 449.8 MB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.838e-05/0.123, allocations: 44 kB / 449.9 MB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.1248, allocations: 0.8632 MB / 450.7 MB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1249, allocations: 4 kB / 450.7 MB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.012e-05/0.1249, allocations: 24 kB / 450.8 MB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1249, allocations: 8 kB / 450.8 MB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003222/0.1282, allocations: 1.321 MB / 452.1 MB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.1307, allocations: 2.078 MB / 454.2 MB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002652/0.1334, allocations: 0.8911 MB / 455.1 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1853/0.3187, allocations: 0.5445 MB / 455.6 MB, free: 46.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001258/0.3189, allocations: 14.53 kB / 455.6 MB, free: 46.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3189, allocations: 39.16 kB / 455.7 MB, free: 46.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 3.567e-06/0.3189, allocations: 2.906 kB / 455.7 MB, free: 46.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.07454/0.3935, allocations: 18.23 MB / 473.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/0.3936, allocations: 94.17 kB / 474 MB, free: 45.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005882/0.3942, allocations: 383.6 kB / 474.4 MB, free: 44.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/0.3945, allocations: 47.7 kB / 474.4 MB, free: 44.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.3947, allocations: 216.3 kB / 474.6 MB, free: 44.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005069/0.3952, allocations: 396.8 kB / 475 MB, free: 44.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.3954, allocations: 25.94 kB / 475 MB, free: 44.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3956, allocations: 378 kB / 475.4 MB, free: 43.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/0.3994, allocations: 1.45 MB / 476.8 MB, free: 43.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004854/0.4043, allocations: 1.601 MB / 478.4 MB, free: 42.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00432/0.4086, allocations: 1.312 MB / 479.8 MB, free: 42.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.611e-05/0.4087, allocations: 1.312 kB / 479.8 MB, free: 42.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008119/0.4168, allocations: 3.049 MB / 482.8 MB, free: 41.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.4169, allocations: 14.75 kB / 482.8 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.4169, allocations: 4.031 kB / 482.8 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.864e-05/0.4169, allocations: 8.375 kB / 482.8 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/0.4195, allocations: 463.9 kB / 483.3 MB, free: 41.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.404e-05/0.4196, allocations: 13.12 kB / 483.3 MB, free: 41.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.4216, allocations: 280.1 kB / 483.6 MB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/0.4218, allocations: 40.59 kB / 483.6 MB, free: 41.14 MB / 382.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.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00056/0.4224, allocations: 245.7 kB / 483.9 MB, free: 40.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003017/0.4227, allocations: 61.02 kB / 483.9 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.423, allocations: 112.4 kB / 484 MB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.423, allocations: 11.81 kB / 484 MB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.612e-05/0.423, allocations: 2.438 kB / 484 MB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/0.423, allocations: 5.766 kB / 484 MB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.4356, allocations: 5.545 MB / 489.6 MB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.404e-05/0.4357, allocations: 20.28 kB / 489.6 MB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/0.4373, allocations: 413 kB / 490 MB, free: 38.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.145e-05/0.4373, allocations: 35.66 kB / 490 MB, free: 38.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.4375, allocations: 48.91 kB / 490.1 MB, free: 38.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.489e-05/0.4375, allocations: 43.62 kB / 490.1 MB, free: 38.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.908e-05/0.4376, allocations: 31.75 kB / 490.2 MB, free: 38.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008048/0.4456, allocations: 3.409 MB / 493.6 MB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005703/0.4462, allocations: 243.7 kB / 493.8 MB, free: 36.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/0.4465, allocations: 52.45 kB / 493.9 MB, free: 36.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.448, allocations: 248.8 kB / 494.1 MB, free: 36.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005512/0.4485, allocations: 231.2 kB / 494.3 MB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.4487, allocations: 57.3 kB / 494.4 MB, free: 36.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004348/0.4491, allocations: 262.1 kB / 494.6 MB, free: 36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4491, allocations: 0 / 494.6 MB, free: 36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001377/0.4505, allocations: 229.9 kB / 494.9 MB, free: 35.97 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007583/0.4581, allocations: 4.005 MB / 498.9 MB, free: 33.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006584/0.4647, allocations: 2.566 MB / 0.4897 GB, free: 32.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.368e-05/0.4648, allocations: 2.844 kB / 0.4897 GB, free: 32.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/0.4681, allocations: 1.174 MB / 0.4908 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.4697, allocations: 152.6 kB / 0.491 GB, free: 32.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/0.4856, allocations: 8.188 MB / 0.499 GB, free: 23.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.4862, allocations: 0.9207 MB / 0.4999 GB, free: 22.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001315/0.4876, allocations: 204.3 kB / 0.5001 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006791/0.4883, allocations: 218.9 kB / 0.5003 GB, free: 22.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.4883, allocations: 0 / 0.5003 GB, free: 22.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.5243, allocations: 19.79 MB / 0.5196 GB, free: 2.406 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/0.5246, allocations: 179.4 kB / 0.5198 GB, free: 2.156 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/2.892, allocations: 0 / 0.5198 GB, free: 2.156 MB / 382.1 MB (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/linux/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 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat