Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.001067/0.001066, allocations: 175.1 kB / 8.739 MB, free: 348 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.478/1.478, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.0009659/0.0009661, allocations: 91.48 kB / 281.6 MB, free: 5.344 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.2333/0.2333, allocations: 44.16 MB / 376.5 MB, free: 3.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.939e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1354, allocations: 61.91 MB / 0.4948 GB, free: 1.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/0.5568, allocations: 87.32 MB / 0.58 GB, free: 9.105 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.5572, allocations: 67.97 kB / 0.5801 GB, free: 9.039 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0166/0.5738, allocations: 6.222 MB / 0.5862 GB, free: 2.812 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.907e-06/0.5738, allocations: 0 / 0.5862 GB, free: 2.812 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.5738, allocations: 11.94 kB / 0.5862 GB, free: 2.801 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008154/0.5747, allocations: 0.5533 MB / 0.5867 GB, free: 2.203 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.5747, allocations: 11.98 kB / 0.5867 GB, free: 2.191 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.834e-05/0.5748, allocations: 39.53 kB / 0.5868 GB, free: 2.152 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.5752, allocations: 263.3 kB / 0.587 GB, free: 1.852 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.5752, allocations: 12 kB / 0.587 GB, free: 1.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.035e-05/0.5753, allocations: 31.91 kB / 0.5871 GB, free: 1.809 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000315/0.5756, allocations: 161.5 kB / 0.5872 GB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.576, allocations: 321.8 kB / 0.5875 GB, free: 1.301 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.5761, allocations: 11.89 kB / 0.5875 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.5761, allocations: 0 / 0.5875 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.5761, allocations: 8 kB / 0.5875 GB, free: 1.281 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.5782, allocations: 1.645 MB / 0.5891 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.5785, allocations: 238.4 kB / 0.5894 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.905e-05/0.5786, allocations: 74.08 kB / 0.5894 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.5787, allocations: 6.953 kB / 0.5895 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.5787, allocations: 50.48 kB / 0.5895 GB, free: 15.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.684e-06/0.5787, allocations: 0 / 0.5895 GB, free: 15.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004055/0.5791, allocations: 165.2 kB / 0.5897 GB, free: 14.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/0.5792, allocations: 217.7 kB / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.5794, allocations: 210.2 kB / 0.5901 GB, free: 14.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.5794, allocations: 29.7 kB / 0.5901 GB, free: 14.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.5796, allocations: 239.4 kB / 0.5903 GB, free: 14.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.519e-05/0.5796, allocations: 114.4 kB / 0.5904 GB, free: 14.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.5797, allocations: 0 / 0.5904 GB, free: 14.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5798, allocations: 346.8 kB / 0.5908 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.5799, allocations: 73.56 kB / 0.5908 GB, free: 13.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/0.5802, allocations: 404.5 kB / 0.5912 GB, free: 13.08 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.5804, allocations: 139.8 kB / 0.5914 GB, free: 12.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.5804, allocations: 4 kB / 0.5914 GB, free: 12.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006043/0.5811, allocations: 437.9 kB / 0.5918 GB, free: 12.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.5811, allocations: 12 kB / 0.5918 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.5811, allocations: 12 kB / 0.5918 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/0.5811, allocations: 20.03 kB / 0.5918 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.5816, allocations: 147.8 kB / 0.592 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.08e-05/0.5816, allocations: 23.92 kB / 0.592 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.5819, allocations: 51.38 kB / 0.592 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.582, allocations: 36.05 kB / 0.5921 GB, free: 12.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.000114/0.5821, allocations: 142.9 kB / 0.5922 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003474/0.5824, allocations: 173.4 kB / 0.5924 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5826, allocations: 31.62 kB / 0.5924 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.069e-05/0.5827, allocations: 29.83 kB / 0.5924 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5827, allocations: 7.828 kB / 0.5924 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5827, allocations: 4 kB / 0.5924 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.5827, allocations: 7.938 kB / 0.5924 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.5838, allocations: 0.578 MB / 0.593 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.5838, allocations: 0 / 0.593 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000431/0.5842, allocations: 95.88 kB / 0.5931 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.5842, allocations: 4 kB / 0.5931 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.5843, allocations: 8 kB / 0.5931 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.5843, allocations: 12.02 kB / 0.5931 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.5843, allocations: 3.938 kB / 0.5931 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005282/0.5848, allocations: 0.8796 MB / 0.594 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.999e-05/0.5849, allocations: 104.9 kB / 0.5941 GB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.5849, allocations: 4 kB / 0.5941 GB, free: 9.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.5853, allocations: 11.98 kB / 0.5941 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.5853, allocations: 23.91 kB / 0.5941 GB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.5853, allocations: 8 kB / 0.5941 GB, free: 9.938 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001144/0.5855, allocations: 154 kB / 0.5943 GB, free: 9.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5855, allocations: 4 kB / 0.5943 GB, free: 9.789 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006953/0.5862, allocations: 91.78 kB / 0.5944 GB, free: 9.699 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0009867/0.5872, allocations: 1.958 MB / 0.5963 GB, free: 7.676 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.5875, allocations: 230.4 kB / 0.5965 GB, free: 7.453 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5875, allocations: 4.125 kB / 0.5965 GB, free: 7.449 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.486e-05/0.5876, allocations: 71.86 kB / 0.5966 GB, free: 7.379 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.5883, allocations: 66.05 kB / 0.5966 GB, free: 7.316 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.5906, allocations: 1.609 MB / 0.5982 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.591, allocations: 0.8069 MB / 0.599 GB, free: 4.805 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.5911, allocations: 43.25 kB / 0.599 GB, free: 4.762 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.5913, allocations: 123.4 kB / 0.5992 GB, free: 4.641 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5913, allocations: 0 / 0.5992 GB, free: 4.641 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.6148, allocations: 5.39 MB / 0.6044 GB, free: 15.29 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.6151, allocations: 137.8 kB / 0.6045 GB, free: 15.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.012/2.627, allocations: 8.031 kB / 0.6046 GB, free: 15.1 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat