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.0008976/0.0008976, allocations: 96.59 kB / 15.69 MB, free: 480 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.0008537/0.0008539, allocations: 174.2 kB / 16.57 MB, free: 6.391 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.297/1.297, allocations: 205.4 MB / 222.7 MB, free: 5.652 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.307/0.307, allocations: 43.54 MB / 314.5 MB, free: 8.984 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.0004915/0.0004916, allocations: 12 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 58.85 MB / 442.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002357/0.1121, allocations: 1.976 MB / 444.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1135, allocations: 0.9566 MB / 445.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1136, allocations: 7.938 kB / 445.8 MB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.1139, allocations: 75.59 kB / 445.9 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.1141, allocations: 83.72 kB / 445.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004344/0.1146, allocations: 223.6 kB / 446.2 MB, free: 9.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004838/0.1151, allocations: 427.2 kB / 446.6 MB, free: 9.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.1152, allocations: 69.5 kB / 446.6 MB, free: 9.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.1155, allocations: 263.1 kB / 446.9 MB, free: 9.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003364/0.1159, allocations: 294.9 kB / 447.2 MB, free: 8.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.205e-05/0.1159, allocations: 31.94 kB / 447.2 MB, free: 8.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.441e-05/0.116, allocations: 32 kB / 447.2 MB, free: 8.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.1162, allocations: 155.5 kB / 447.4 MB, free: 8.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.395e-05/0.1163, allocations: 93.45 kB / 447.5 MB, free: 8.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003035/0.1166, allocations: 375.1 kB / 447.9 MB, free: 8.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1166, allocations: 4 kB / 447.9 MB, free: 8.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1166, allocations: 0 / 447.9 MB, free: 8.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1166, allocations: 0 / 447.9 MB, free: 8.148 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.002008/0.1186, allocations: 0.9392 MB / 448.8 MB, free: 7.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1187, allocations: 8.031 kB / 448.8 MB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.702e-05/0.1188, allocations: 90.52 kB / 448.9 MB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.425e-05/0.1189, allocations: 59.44 kB / 449 MB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.1193, allocations: 358.1 kB / 449.3 MB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003412/0.1197, allocations: 279.1 kB / 449.6 MB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.404e-05/0.1198, allocations: 40 kB / 449.6 MB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.1217, allocations: 0.8671 MB / 450.5 MB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1218, allocations: 7.938 kB / 450.5 MB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.465e-05/0.1218, allocations: 16 kB / 450.5 MB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1219, allocations: 12 kB / 450.5 MB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00348/0.1253, allocations: 1.321 MB / 451.8 MB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.128, allocations: 2.07 MB / 453.9 MB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/0.1309, allocations: 0.8988 MB / 454.8 MB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-05/0.131, allocations: 13.02 kB / 454.8 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.131, allocations: 42.56 kB / 454.9 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 3.787e-06/0.131, allocations: 3.984 kB / 454.9 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.2774/0.4084, allocations: 18.22 MB / 473.1 MB, free: 45.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.4085, allocations: 93.42 kB / 473.2 MB, free: 45.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004577/0.409, allocations: 383.3 kB / 473.6 MB, free: 45.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001992/0.4092, allocations: 48.42 kB / 473.6 MB, free: 45.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.4093, allocations: 224.1 kB / 473.8 MB, free: 45.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003046/0.4096, allocations: 397.7 kB / 474.2 MB, free: 44.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.4098, allocations: 23 kB / 474.2 MB, free: 44.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.672e-05/0.4099, allocations: 374 kB / 474.6 MB, free: 44.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003278/0.4132, allocations: 1.455 MB / 476.1 MB, free: 43.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003382/0.4166, allocations: 1.6 MB / 477.7 MB, free: 43.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003607/0.4202, allocations: 1.307 MB / 479 MB, free: 42.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.4202, allocations: 0 / 479 MB, free: 42.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007885/0.4281, allocations: 3.05 MB / 482 MB, free: 41.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.4282, allocations: 6.469 kB / 482 MB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.4282, allocations: 3.25 kB / 482 MB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.191e-05/0.4282, allocations: 13.53 kB / 482 MB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.431, allocations: 463.5 kB / 482.5 MB, free: 41.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.392e-05/0.431, allocations: 13.14 kB / 482.5 MB, free: 41.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.433, allocations: 280.2 kB / 482.8 MB, free: 41.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.4332, allocations: 44.95 kB / 482.8 MB, free: 41.57 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.0004796/0.4337, allocations: 233.6 kB / 483 MB, free: 41.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.4339, allocations: 61.38 kB / 483.1 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.4341, allocations: 113 kB / 483.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.4341, allocations: 11.41 kB / 483.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/0.4342, allocations: 1 kB / 483.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.4342, allocations: 7.266 kB / 483.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/0.4463, allocations: 5.544 MB / 488.8 MB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.769e-05/0.4464, allocations: 20.5 kB / 488.8 MB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/0.448, allocations: 413 kB / 489.2 MB, free: 38.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.171e-05/0.448, allocations: 34.38 kB / 489.2 MB, free: 38.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4481, allocations: 45.28 kB / 489.3 MB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.725e-05/0.4482, allocations: 43.64 kB / 489.3 MB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.55e-05/0.4482, allocations: 31.59 kB / 489.4 MB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008026/0.4563, allocations: 4.504 MB / 493.9 MB, free: 35.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005566/0.4568, allocations: 240.2 kB / 494.1 MB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.457, allocations: 51.64 kB / 494.1 MB, free: 35.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/0.4585, allocations: 252.8 kB / 494.4 MB, free: 35.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000516/0.4591, allocations: 235 kB / 494.6 MB, free: 34.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.4592, allocations: 61.97 kB / 494.7 MB, free: 34.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003635/0.4596, allocations: 260.5 kB / 494.9 MB, free: 34.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4596, allocations: 4 kB / 494.9 MB, free: 34.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001298/0.4609, allocations: 230.2 kB / 495.2 MB, free: 34.75 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.0098/0.4707, allocations: 11.49 MB / 0.4948 GB, free: 24.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006912/0.4776, allocations: 2.559 MB / 0.4973 GB, free: 23.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.784e-05/0.4777, allocations: 2.281 kB / 0.4973 GB, free: 23.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/0.4811, allocations: 1.182 MB / 0.4984 GB, free: 23.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.4822, allocations: 135.6 kB / 0.4986 GB, free: 23.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.4994, allocations: 10.11 MB / 0.5084 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.5, allocations: 0.9402 MB / 0.5093 GB, free: 12.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001281/0.5013, allocations: 199.2 kB / 0.5095 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006293/0.5019, allocations: 211.4 kB / 0.5097 GB, free: 11.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.804e-06/0.5019, allocations: 0 / 0.5097 GB, free: 11.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03372/0.5357, allocations: 19.74 MB / 0.529 GB, free: 8.004 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.5359, allocations: 166.6 kB / 0.5292 GB, free: 7.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/2.952, allocations: 0 / 0.5292 GB, free: 7.762 MB / 398.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