Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.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.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",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.001296/0.001297, allocations: 180.1 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 221.3 MB / 236 MB, free: 2.969 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.0009032/0.0009031, allocations: 91.73 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2233/0.2233, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.35e-05, allocations: 8.203 kB / 451.9 MB, free: 9.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1791, allocations: 61.91 MB / 0.5018 GB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5282/0.7074, allocations: 96.29 MB / 0.5958 GB, free: 8.977 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.7077, allocations: 75.95 kB / 0.5959 GB, free: 8.902 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2684/0.9761, allocations: 92.18 MB / 0.6859 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.815e-06/0.9761, allocations: 0 / 0.6859 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005074/0.9766, allocations: 99.98 kB / 0.686 GB, free: 11.95 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1705 * Number of variables: 1705 Notification: Performance of Generate backend data structure: time 0.06933/1.046, allocations: 9.671 MB / 0.6955 GB, free: 2.207 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/1.046, allocations: 12.03 kB / 0.6955 GB, free: 2.195 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005229/1.051, allocations: 0.8454 MB / 0.6963 GB, free: 1.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/1.062, allocations: 2.076 MB / 0.6983 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0111/1.074, allocations: 3.41 MB / 0.7016 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000534/1.074, allocations: 349.1 kB / 0.702 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004004/1.078, allocations: 479.6 kB / 0.7024 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4495/1.528, allocations: 15.33 MB / 0.7174 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004649/1.528, allocations: 61.19 kB / 0.7175 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002372/1.531, allocations: 222.3 kB / 0.7177 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00336/1.534, allocations: 1.117 MB / 0.7188 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.046/1.58, allocations: 15.19 MB / 0.7336 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0852/1.665, allocations: 55.65 MB / 0.7879 GB, free: 78.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07256/1.738, allocations: 7.21 MB / 0.795 GB, free: 76.98 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007398/1.745, allocations: 2.815 MB / 0.7977 GB, free: 75.97 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/1.763, allocations: 6.566 MB / 0.8041 GB, free: 71.39 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.056e-05/1.763, allocations: 58.25 kB / 0.8042 GB, free: 71.33 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=176): time 9.899e-06/1.763, allocations: 0 / 0.8042 GB, free: 71.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=176): time 0.009097/1.772, allocations: 2.693 MB / 0.8068 GB, free: 70.35 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/1.773, allocations: 145.7 kB / 0.807 GB, free: 70.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01639/1.789, allocations: 4.247 MB / 0.8111 GB, free: 68.66 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005589/1.79, allocations: 52.92 kB / 0.8112 GB, free: 68.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004632/1.794, allocations: 3.588 MB / 0.8147 GB, free: 66.06 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001737/1.796, allocations: 0.7305 MB / 0.8154 GB, free: 65.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001355/1.797, allocations: 128.8 kB / 0.8155 GB, free: 65.44 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001152/1.799, allocations: 0.5826 MB / 0.8161 GB, free: 65.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00712/1.806, allocations: 2.166 MB / 0.8182 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009642/1.815, allocations: 6.424 MB / 0.8245 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009991/1.825, allocations: 3.705 MB / 0.8281 GB, free: 56.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002941/1.826, allocations: 45.88 kB / 0.8281 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=873) (initialization): time 0.02299/1.849, allocations: 8.391 MB / 0.8363 GB, free: 52.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000261/1.849, allocations: 72.22 kB / 0.8364 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003747/1.85, allocations: 156 kB / 0.8365 GB, free: 52.49 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003496/1.85, allocations: 220 kB / 0.8367 GB, free: 52.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006524/1.856, allocations: 1.621 MB / 0.8383 GB, free: 50.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003659/1.857, allocations: 306.2 kB / 0.8386 GB, free: 50.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007705/1.865, allocations: 0.9261 MB / 0.8395 GB, free: 49.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.866, allocations: 445.9 kB / 0.84 GB, free: 49.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 695 * Number of states: 0 () * Number of discrete variables: 42 (rotor1D10.cylinderColor[3],rotor1D10.cylinderColor[2],rotor1D10.cylinderColor[1],rotor1D9.cylinderColor[3],rotor1D9.cylinderColor[2],rotor1D9.cylinderColor[1],rotor1D8.cylinderColor[3],rotor1D8.cylinderColor[2],rotor1D8.cylinderColor[1],rotor1D7.cylinderColor[3],rotor1D7.cylinderColor[2],rotor1D7.cylinderColor[1],rotor1D6.cylinderColor[3],rotor1D6.cylinderColor[2],rotor1D6.cylinderColor[1],rotor1D5.cylinderColor[3],rotor1D5.cylinderColor[2],rotor1D5.cylinderColor[1],rotor1D4.cylinderColor[3],rotor1D4.cylinderColor[2],rotor1D4.cylinderColor[1],rotor1D3.cylinderColor[3],rotor1D3.cylinderColor[2],rotor1D3.cylinderColor[1],rotor1D2.cylinderColor[3],rotor1D2.cylinderColor[2],rotor1D2.cylinderColor[1],rotor1D1.cylinderColor[3],rotor1D1.cylinderColor[2],rotor1D1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (849): * Single equations (assignments): 846 * Array equations: 3 * 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.002193/1.869, allocations: 0.6246 MB / 0.8406 GB, free: 48.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/1.87, allocations: 398.8 kB / 0.8409 GB, free: 48.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005229/1.875, allocations: 2.522 MB / 0.8434 GB, free: 46.19 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.486e-05/1.875, allocations: 27.8 kB / 0.8434 GB, free: 46.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/1.875, allocations: 0 / 0.8434 GB, free: 46.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-05/1.875, allocations: 11.73 kB / 0.8434 GB, free: 46.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/1.886, allocations: 4.293 MB / 0.8476 GB, free: 42.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.131e-05/1.886, allocations: 0 / 0.8476 GB, free: 42.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.889, allocations: 343.8 kB / 0.848 GB, free: 42.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.34e-05/1.889, allocations: 11.94 kB / 0.848 GB, free: 42.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/1.889, allocations: 35.75 kB / 0.848 GB, free: 42.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.571e-05/1.889, allocations: 11.81 kB / 0.848 GB, free: 42.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.889, allocations: 4 kB / 0.848 GB, free: 42.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006078/1.895, allocations: 4.856 MB / 0.8528 GB, free: 38.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/1.897, allocations: 0.4915 MB / 0.8532 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/1.898, allocations: 32 kB / 0.8533 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002166/1.9, allocations: 61.91 kB / 0.8533 GB, free: 37.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/1.9, allocations: 99.05 kB / 0.8534 GB, free: 37.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/1.901, allocations: 57.86 kB / 0.8535 GB, free: 37.39 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005982/1.907, allocations: 2.95 MB / 0.8564 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.5e-07/1.907, allocations: 6.531 kB / 0.8564 GB, free: 34.76 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00868/1.915, allocations: 1.347 MB / 0.8577 GB, free: 33.42 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 20 (rotor1D1.phi,rotor1D1.w,rotor1D2.phi,rotor1D2.w,rotor1D3.phi,rotor1D3.w,rotor1D4.phi,rotor1D4.w,rotor1D5.phi,rotor1D5.w,rotor1D6.phi,rotor1D6.w,rotor1D7.phi,rotor1D7.w,rotor1D8.phi,rotor1D8.w,rotor1D9.phi,rotor1D9.w,rotor1D10.phi,rotor1D10.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 169 * Array equations: 3 * 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.006106/1.921, allocations: 5.673 MB / 0.8632 GB, free: 28.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007708/1.929, allocations: 4.942 MB / 0.8681 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.914e-06/1.929, allocations: 320 / 0.8681 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/1.931, allocations: 1.263 MB / 0.8693 GB, free: 22.67 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003037/1.934, allocations: 478.8 kB / 0.8697 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02351/1.957, allocations: 10.32 MB / 0.8798 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003953/1.961, allocations: 3.686 MB / 0.8834 GB, free: 8.254 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005365/1.967, allocations: 2.048 MB / 0.8854 GB, free: 6.207 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003469/1.97, allocations: 2.214 MB / 0.8876 GB, free: 3.992 MB / 0.5105 GB Notification: Performance of SimCode: time 1.102e-06/1.97, allocations: 3.938 kB / 0.8876 GB, free: 3.988 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5358/2.506, allocations: 88.19 MB / 0.9737 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/2.506, allocations: 166.9 kB / 0.9739 GB, free: 132.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.21/7.717, allocations: 3.516 kB / 0.9739 GB, free: 132.6 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat does not exist to compare? outputFormat=mat