Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002351/0.00235, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.24/2.24, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 74.73 kB / 267.5 MB, free: 14.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.293/0.293, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.791e-05/3.8e-05, allocations: 8 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1276, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.555/0.6826, allocations: 92.49 MB / 0.5632 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.683, allocations: 72.06 kB / 0.5633 GB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05707/0.7401, allocations: 13.69 MB / 0.5766 GB, free: 15.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.7401, allocations: 0 / 0.5766 GB, free: 15.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.25e-05/0.7402, allocations: 24 kB / 0.5767 GB, free: 15.3 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002337/0.7426, allocations: 0.9149 MB / 0.5776 GB, free: 14.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.7426, allocations: 8.031 kB / 0.5776 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000321/0.743, allocations: 143 kB / 0.5777 GB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000276/0.7433, allocations: 98.78 kB / 0.5778 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.7446, allocations: 0.5479 MB / 0.5783 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.605e-05/0.7447, allocations: 65.62 kB / 0.5784 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/0.7449, allocations: 95.69 kB / 0.5785 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.7473, allocations: 0.8643 MB / 0.5793 GB, free: 12.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.667e-05/0.7474, allocations: 7.953 kB / 0.5793 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.7476, allocations: 35.62 kB / 0.5794 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.799e-05/0.7476, allocations: 24 kB / 0.5794 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.7493, allocations: 498.9 kB / 0.5799 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006151/0.7555, allocations: 3.634 MB / 0.5834 GB, free: 9.371 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008123/0.7563, allocations: 212.7 kB / 0.5836 GB, free: 9.211 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.7566, allocations: 97.53 kB / 0.5837 GB, free: 9.148 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.7569, allocations: 247.3 kB / 0.584 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.7569, allocations: 37.88 kB / 0.584 GB, free: 8.809 MB / 394.7 MB Notification: Performance of pre-optimization done (n=30): time 3.196e-06/0.757, allocations: 0 / 0.584 GB, free: 8.809 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.003245/0.7602, allocations: 1.191 MB / 0.5851 GB, free: 7.703 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.7603, allocations: 55.41 kB / 0.5852 GB, free: 7.637 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006233/0.7609, allocations: 347.8 kB / 0.5855 GB, free: 7.359 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.761, allocations: 33.52 kB / 0.5856 GB, free: 7.324 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.7614, allocations: 0.4952 MB / 0.586 GB, free: 6.902 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.7616, allocations: 136.6 kB / 0.5862 GB, free: 6.785 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.7616, allocations: 8.438 kB / 0.5862 GB, free: 6.785 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.7618, allocations: 330.4 kB / 0.5865 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.7621, allocations: 106 kB / 0.5866 GB, free: 6.395 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/0.7626, allocations: 300 kB / 0.5869 GB, free: 6.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000405/0.763, allocations: 153.4 kB / 0.587 GB, free: 5.965 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.763, allocations: 4 kB / 0.587 GB, free: 5.961 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001158/0.7642, allocations: 478.8 kB / 0.5875 GB, free: 5.586 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.7642, allocations: 8 kB / 0.5875 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.7643, allocations: 12.09 kB / 0.5875 GB, free: 5.566 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002948/0.7646, allocations: 36.41 kB / 0.5876 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008102/0.7654, allocations: 129.8 kB / 0.5877 GB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005581/0.766, allocations: 0.5507 MB / 0.5882 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.7664, allocations: 20.56 kB / 0.5882 GB, free: 4.836 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.376e-05/0.7665, allocations: 26.44 kB / 0.5883 GB, free: 4.816 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001754/0.7667, allocations: 146.5 kB / 0.5884 GB, free: 4.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.7668, allocations: 55.33 kB / 0.5884 GB, free: 4.625 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009281/0.7678, allocations: 320.5 kB / 0.5888 GB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.7678, allocations: 4 kB / 0.5888 GB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7678, allocations: 0 / 0.5888 GB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.7678, allocations: 11.98 kB / 0.5888 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002342/0.7702, allocations: 1.037 MB / 0.5898 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.433e-06/0.7703, allocations: 160 / 0.5898 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/0.7711, allocations: 87.08 kB / 0.5899 GB, free: 3.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/0.7713, allocations: 32.09 kB / 0.5899 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.7714, allocations: 10.81 kB / 0.5899 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005227/0.7719, allocations: 0.5497 MB / 0.5904 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.7719, allocations: 4 kB / 0.5904 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.7732, allocations: 0.6006 MB / 0.591 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.7734, allocations: 112.5 kB / 0.5911 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.7735, allocations: 7.938 kB / 0.5912 GB, free: 2.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.7738, allocations: 10.94 kB / 0.5912 GB, free: 2.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.999e-05/0.774, allocations: 31.86 kB / 0.5912 GB, free: 2.117 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.221e-05/0.774, allocations: 11.98 kB / 0.5912 GB, free: 2.105 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004715/0.7745, allocations: 267.9 kB / 0.5915 GB, free: 1.895 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7745, allocations: 0 / 0.5915 GB, free: 1.895 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007992/0.7753, allocations: 134.4 kB / 0.5916 GB, free: 1.777 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001803/0.7771, allocations: 1.491 MB / 0.593 GB, free: 352 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.7782, allocations: 309.5 kB / 0.5933 GB, free: 120 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.7782, allocations: 4 kB / 0.5933 GB, free: 116 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004066/0.7787, allocations: 133.6 kB / 0.5935 GB, free: 16 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.7794, allocations: 71.11 kB / 0.5935 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00424/0.7836, allocations: 1.53 MB / 0.595 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008069/0.7845, allocations: 0.9764 MB / 0.596 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005108/0.785, allocations: 299.6 kB / 0.5963 GB, free: 13.42 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.785, allocations: 0 / 0.5963 GB, free: 13.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.64, allocations: 14.18 MB / 0.6101 GB, free: 15.44 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat