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.001489/0.001489, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001164/0.001163, allocations: 87.56 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5345/0.5345, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004964/0.0004963, allocations: 11.94 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1359, allocations: 58.86 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5216/0.6575, allocations: 92.58 MB / 0.5692 GB, free: 9.949 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.6579, allocations: 71.97 kB / 0.5693 GB, free: 9.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07478/0.7327, allocations: 13.71 MB / 0.5827 GB, free: 12.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.908e-06/0.7328, allocations: 0 / 0.5827 GB, free: 12.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001932/0.733, allocations: 27.98 kB / 0.5827 GB, free: 12.11 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003503/0.7365, allocations: 0.9646 MB / 0.5837 GB, free: 11.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.887e-05/0.7366, allocations: 8.031 kB / 0.5837 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000534/0.7372, allocations: 139.7 kB / 0.5838 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000332/0.7375, allocations: 106.8 kB / 0.5839 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.7393, allocations: 0.5452 MB / 0.5844 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.7395, allocations: 67.03 kB / 0.5845 GB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.7398, allocations: 95.91 kB / 0.5846 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003336/0.7431, allocations: 0.8775 MB / 0.5855 GB, free: 9.156 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.793e-05/0.7433, allocations: 15.84 kB / 0.5855 GB, free: 9.141 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.7435, allocations: 40 kB / 0.5855 GB, free: 9.102 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.552e-05/0.7435, allocations: 24 kB / 0.5855 GB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002622/0.7462, allocations: 0.5112 MB / 0.586 GB, free: 8.562 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008525/0.7547, allocations: 3.644 MB / 0.5896 GB, free: 4.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.7559, allocations: 224.2 kB / 0.5898 GB, free: 4.535 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003566/0.7563, allocations: 255.3 kB / 0.59 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.7564, allocations: 36.81 kB / 0.5901 GB, free: 4.188 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 4.348e-06/0.7564, allocations: 0 / 0.5901 GB, free: 4.188 MB / 410.7 MB Notification: Performance of matching and sorting (n=35): time 0.005019/0.7614, allocations: 1.306 MB / 0.5914 GB, free: 2.785 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.7615, allocations: 55.41 kB / 0.5914 GB, free: 2.719 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008919/0.7624, allocations: 345 kB / 0.5917 GB, free: 2.375 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/0.7625, allocations: 33.7 kB / 0.5918 GB, free: 2.336 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005406/0.7631, allocations: 0.5005 MB / 0.5923 GB, free: 1.828 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.7633, allocations: 134.1 kB / 0.5924 GB, free: 1.695 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.7634, allocations: 12 kB / 0.5924 GB, free: 1.684 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.7636, allocations: 330.8 kB / 0.5927 GB, free: 1.352 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004919/0.7641, allocations: 117.1 kB / 0.5928 GB, free: 1.234 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007135/0.7649, allocations: 302.3 kB / 0.5931 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005852/0.7655, allocations: 167.8 kB / 0.5933 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.7655, allocations: 4 kB / 0.5933 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001776/0.7673, allocations: 493.8 kB / 0.5937 GB, free: 204 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.7674, allocations: 8 kB / 0.5938 GB, free: 196 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.7674, allocations: 4.781 kB / 0.5938 GB, free: 192 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003438/0.7678, allocations: 44.78 kB / 0.5938 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008768/0.7687, allocations: 131.8 kB / 0.5939 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008402/0.7695, allocations: 0.5524 MB / 0.5945 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006619/0.7702, allocations: 24 kB / 0.5945 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.312e-05/0.7703, allocations: 24 kB / 0.5945 GB, free: 15.39 MB / 426.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 () * Number of clocked 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.0007248/0.7711, allocations: 238 kB / 0.5947 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.7712, allocations: 51.34 kB / 0.5948 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.7727, allocations: 333.3 kB / 0.5951 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.7727, allocations: 4 kB / 0.5951 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.7727, allocations: 0 / 0.5951 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.7727, allocations: 12.03 kB / 0.5951 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.7752, allocations: 1.06 MB / 0.5962 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.7753, allocations: 3.953 kB / 0.5962 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000724/0.776, allocations: 87.89 kB / 0.5962 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000213/0.7762, allocations: 28.84 kB / 0.5963 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.7763, allocations: 12 kB / 0.5963 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005195/0.7768, allocations: 0.5486 MB / 0.5968 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.7768, allocations: 4.062 kB / 0.5968 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.7783, allocations: 0.6188 MB / 0.5974 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.7784, allocations: 116.5 kB / 0.5975 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.597e-05/0.7785, allocations: 8 kB / 0.5975 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.7788, allocations: 15.98 kB / 0.5976 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-05/0.7789, allocations: 23.97 kB / 0.5976 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.045e-05/0.779, allocations: 19.95 kB / 0.5976 GB, free: 12.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004746/0.7794, allocations: 267.1 kB / 0.5979 GB, free: 11.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7794, allocations: 0 / 0.5979 GB, free: 11.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007758/0.7802, allocations: 131.9 kB / 0.598 GB, free: 11.62 MB / 426.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 () * Number of clocked 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.001985/0.7822, allocations: 1.529 MB / 0.5995 GB, free: 10.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.7834, allocations: 333.2 kB / 0.5998 GB, free: 9.711 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/0.7834, allocations: 0 / 0.5998 GB, free: 9.711 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004671/0.7839, allocations: 152.4 kB / 0.5999 GB, free: 9.562 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007126/0.7846, allocations: 65.38 kB / 0.6 GB, free: 9.504 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.7952, allocations: 7.892 MB / 0.6077 GB, free: 1.418 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008129/0.796, allocations: 0.9756 MB / 0.6087 GB, free: 424 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005861/0.7966, allocations: 295.3 kB / 0.6089 GB, free: 128 kB / 426.7 MB Notification: Performance of SimCode: time 1.113e-06/0.7967, allocations: 0 / 0.6089 GB, free: 128 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.809/3.606, allocations: 14.08 MB / 0.6227 GB, free: 2.031 MB / 442.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