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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.5 MB / 230.7 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009676, allocations: 85.88 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2071/0.2071, allocations: 44.14 MB / 376.5 MB, free: 3.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.918e-05/1.922e-05, allocations: 224 / 444.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 61.92 MB / 0.4948 GB, free: 1.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4062/0.5317, allocations: 88.52 MB / 0.5812 GB, free: 7.887 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.5319, allocations: 63.97 kB / 0.5813 GB, free: 7.824 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03527/0.5672, allocations: 11.79 MB / 0.5928 GB, free: 12.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5673, allocations: 0 / 0.5928 GB, free: 12.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.5673, allocations: 16 kB / 0.5928 GB, free: 12 MB / 410.7 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.001974/0.5693, allocations: 0.8922 MB / 0.5937 GB, free: 11.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.5693, allocations: 23.92 kB / 0.5937 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.5695, allocations: 59.44 kB / 0.5937 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.57, allocations: 362.8 kB / 0.5941 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003477/0.5704, allocations: 255.4 kB / 0.5943 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.408e-05/0.5705, allocations: 27.91 kB / 0.5944 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001276/0.5717, allocations: 0.8108 MB / 0.5952 GB, free: 9.465 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008393/0.5726, allocations: 0.5565 MB / 0.5957 GB, free: 8.867 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.5726, allocations: 0 / 0.5957 GB, free: 8.867 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.317e-05/0.5727, allocations: 11.98 kB / 0.5957 GB, free: 8.855 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.5727, allocations: 8 kB / 0.5957 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.5755, allocations: 2.007 MB / 0.5977 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.5768, allocations: 0.5571 MB / 0.5982 GB, free: 6.188 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004169/0.5772, allocations: 294.8 kB / 0.5985 GB, free: 5.895 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.994e-05/0.5773, allocations: 20.5 kB / 0.5985 GB, free: 5.875 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.5774, allocations: 35.12 kB / 0.5986 GB, free: 5.832 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.414e-06/0.5774, allocations: 0 / 0.5986 GB, free: 5.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01935/0.5967, allocations: 7.12 MB / 0.6055 GB, free: 14.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.5968, allocations: 90.23 kB / 0.6056 GB, free: 14.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.5972, allocations: 346.2 kB / 0.6059 GB, free: 14.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001557/0.5974, allocations: 25.7 kB / 0.6059 GB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.5976, allocations: 221.1 kB / 0.6062 GB, free: 13.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/0.5979, allocations: 382.2 kB / 0.6065 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.5981, allocations: 0 / 0.6065 GB, free: 13.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5982, allocations: 374.7 kB / 0.6069 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.5997, allocations: 0.9478 MB / 0.6078 GB, free: 12.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.6012, allocations: 1.093 MB / 0.6089 GB, free: 11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.6024, allocations: 0.8009 MB / 0.6097 GB, free: 10.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.6024, allocations: 0 / 0.6097 GB, free: 10.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003175/0.6056, allocations: 1.993 MB / 0.6116 GB, free: 8.207 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.6057, allocations: 9.406 kB / 0.6116 GB, free: 8.199 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.6057, allocations: 4.844 kB / 0.6116 GB, free: 8.195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.6057, allocations: 8.312 kB / 0.6116 GB, free: 8.188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/0.6086, allocations: 467.4 kB / 0.6121 GB, free: 7.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.6087, allocations: 8 kB / 0.6121 GB, free: 7.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002076/0.6107, allocations: 259.7 kB / 0.6123 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.6109, allocations: 47.98 kB / 0.6124 GB, free: 7.422 MB / 426.7 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.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003646/0.6113, allocations: 140.3 kB / 0.6125 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002828/0.6141, allocations: 1.703 MB / 0.6142 GB, free: 5.562 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/0.6143, allocations: 67.16 kB / 0.6142 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002708/0.6146, allocations: 96.97 kB / 0.6143 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.6146, allocations: 12 kB / 0.6143 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.6147, allocations: 4 kB / 0.6143 GB, free: 5.383 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.6147, allocations: 3.984 kB / 0.6143 GB, free: 5.379 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008544/0.6232, allocations: 4.556 MB / 0.6188 GB, free: 0.4961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.992e-05/0.6233, allocations: 24 kB / 0.6188 GB, free: 484 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/0.6249, allocations: 419.8 kB / 0.6192 GB, free: 64 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.189e-05/0.625, allocations: 32 kB / 0.6192 GB, free: 32 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.668e-05/0.6251, allocations: 28 kB / 0.6193 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-05/0.6251, allocations: 39.86 kB / 0.6193 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.546e-05/0.6252, allocations: 31.88 kB / 0.6193 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003451/0.6286, allocations: 3.241 MB / 0.6225 GB, free: 11.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.629, allocations: 248.3 kB / 0.6227 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.6291, allocations: 27.98 kB / 0.6228 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.6306, allocations: 239.8 kB / 0.623 GB, free: 11.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004069/0.631, allocations: 243.1 kB / 0.6232 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.783e-05/0.6311, allocations: 56 kB / 0.6233 GB, free: 11.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002854/0.6314, allocations: 264.6 kB / 0.6235 GB, free: 10.76 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6314, allocations: 0 / 0.6235 GB, free: 10.76 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000986/0.6324, allocations: 192 kB / 0.6237 GB, free: 10.57 MB / 442.7 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 () * 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 (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.005826/0.6382, allocations: 10.22 MB / 0.6337 GB, free: 15.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.6408, allocations: 1.627 MB / 0.6353 GB, free: 14.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/0.6408, allocations: 0 / 0.6353 GB, free: 14.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.6426, allocations: 0.7352 MB / 0.636 GB, free: 13.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009342/0.6435, allocations: 115.2 kB / 0.6361 GB, free: 13.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.6473, allocations: 1.734 MB / 0.6378 GB, free: 11.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/0.6479, allocations: 0.9401 MB / 0.6387 GB, free: 10.18 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001301/0.6492, allocations: 190.2 kB / 0.6389 GB, free: 9.988 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007498/0.65, allocations: 223.4 kB / 0.6391 GB, free: 9.77 MB / 458.7 MB Notification: Performance of SimCode: time 1.252e-06/0.65, allocations: 0 / 0.6391 GB, free: 9.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04409/0.6941, allocations: 19.42 MB / 0.6581 GB, free: 6.391 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.6944, allocations: 124.6 kB / 0.6582 GB, free: 6.195 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.688/3.383, allocations: 8 kB / 0.6582 GB, free: 6.188 MB / 474.7 MB (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/linux/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 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat