Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008806/0.0008803, allocations: 99.73 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4472/0.4472, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002888, allocations: 8 kB / 468.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4926/0.4929, allocations: 63.24 MB / 0.5193 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.6318, allocations: 94.66 MB / 0.6117 GB, free: 10.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.6322, allocations: 71.94 kB / 0.6118 GB, free: 10.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03661/0.6688, allocations: 14.01 MB / 0.6255 GB, free: 12.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6689, allocations: 4 kB / 0.6255 GB, free: 12.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.043e-05/0.669, allocations: 24 kB / 0.6255 GB, free: 12.82 MB / 442.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.002107/0.6711, allocations: 0.9626 MB / 0.6264 GB, free: 11.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.6711, allocations: 12.03 kB / 0.6264 GB, free: 11.79 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003277/0.6715, allocations: 143.7 kB / 0.6266 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003795/0.6719, allocations: 106.8 kB / 0.6267 GB, free: 11.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.6729, allocations: 0.5491 MB / 0.6272 GB, free: 10.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.928e-05/0.673, allocations: 66 kB / 0.6273 GB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/0.6732, allocations: 95.91 kB / 0.6274 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.6751, allocations: 0.8736 MB / 0.6282 GB, free: 9.852 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-05/0.6752, allocations: 15.8 kB / 0.6282 GB, free: 9.836 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-05/0.6752, allocations: 40 kB / 0.6283 GB, free: 9.797 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.6753, allocations: 20 kB / 0.6283 GB, free: 9.777 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.6766, allocations: 0.5229 MB / 0.6288 GB, free: 9.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004784/0.6813, allocations: 3.633 MB / 0.6323 GB, free: 5.461 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006092/0.682, allocations: 229.6 kB / 0.6326 GB, free: 5.223 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002547/0.6823, allocations: 259.2 kB / 0.6328 GB, free: 4.914 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.6823, allocations: 34.56 kB / 0.6328 GB, free: 4.871 MB / 442.7 MB Notification: Performance of pre-optimization done (n=30): time 2.595e-06/0.6823, allocations: 4 kB / 0.6328 GB, free: 4.867 MB / 442.7 MB Notification: Performance of matching and sorting (n=35): time 0.002627/0.685, allocations: 1.296 MB / 0.6341 GB, free: 3.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.685, allocations: 55.41 kB / 0.6342 GB, free: 3.414 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000449/0.6855, allocations: 349 kB / 0.6345 GB, free: 3.066 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.6855, allocations: 29.7 kB / 0.6345 GB, free: 3.031 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.6859, allocations: 474.1 kB / 0.635 GB, free: 2.559 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.686, allocations: 134.1 kB / 0.6351 GB, free: 2.426 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.707e-05/0.686, allocations: 8 kB / 0.6351 GB, free: 2.418 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.6862, allocations: 358.8 kB / 0.6355 GB, free: 2.059 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.6864, allocations: 121 kB / 0.6356 GB, free: 1.941 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.6868, allocations: 302.3 kB / 0.6359 GB, free: 1.562 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.6871, allocations: 164.7 kB / 0.636 GB, free: 1.402 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.6871, allocations: 4 kB / 0.636 GB, free: 1.398 MB / 442.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008291/0.6879, allocations: 0.5125 MB / 0.6365 GB, free: 0.875 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.6879, allocations: 8.812 kB / 0.6365 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.688, allocations: 12 kB / 0.6365 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002081/0.6882, allocations: 44.83 kB / 0.6366 GB, free: 0.8086 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.6886, allocations: 131.8 kB / 0.6367 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003905/0.689, allocations: 0.5524 MB / 0.6372 GB, free: 104 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.6892, allocations: 23.98 kB / 0.6373 GB, free: 80 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.564e-05/0.6893, allocations: 28 kB / 0.6373 GB, free: 52 kB / 442.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.0003812/0.6897, allocations: 233.7 kB / 0.6375 GB, free: 15.81 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.6898, allocations: 47.44 kB / 0.6376 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005993/0.6904, allocations: 332 kB / 0.6379 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.6904, allocations: 4 kB / 0.6379 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.6904, allocations: 4 kB / 0.6379 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.6904, allocations: 3.984 kB / 0.6379 GB, free: 15.42 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.6919, allocations: 1.062 MB / 0.6389 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.692, allocations: 11.89 kB / 0.6389 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.6923, allocations: 83.89 kB / 0.639 GB, free: 14.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.6925, allocations: 28.84 kB / 0.639 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.6925, allocations: 8 kB / 0.6391 GB, free: 14.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003112/0.6928, allocations: 0.5525 MB / 0.6396 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6928, allocations: 0 / 0.6396 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007634/0.6936, allocations: 0.6227 MB / 0.6402 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.6937, allocations: 124.4 kB / 0.6403 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.39e-05/0.6938, allocations: 12 kB / 0.6403 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.694, allocations: 8 kB / 0.6403 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.694, allocations: 23.97 kB / 0.6404 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.6941, allocations: 15.95 kB / 0.6404 GB, free: 12.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002621/0.6943, allocations: 263.1 kB / 0.6406 GB, free: 12.42 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6943, allocations: 0 / 0.6406 GB, free: 12.42 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0005483/0.6949, allocations: 132 kB / 0.6408 GB, free: 12.29 MB / 458.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.001204/0.6961, allocations: 1.526 MB / 0.6422 GB, free: 10.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0006145/0.6967, allocations: 325.4 kB / 0.6426 GB, free: 10.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.6967, allocations: 0 / 0.6426 GB, free: 10.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.697, allocations: 148.2 kB / 0.6427 GB, free: 10.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.6974, allocations: 65.61 kB / 0.6428 GB, free: 10.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007084/0.7045, allocations: 7.85 MB / 0.6504 GB, free: 2.145 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006432/0.7052, allocations: 0.9756 MB / 0.6514 GB, free: 1.141 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002265/0.7054, allocations: 56.55 kB / 0.6514 GB, free: 1.082 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.7058, allocations: 291.7 kB / 0.6517 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of SimCode: time 8.92e-07/0.7059, allocations: 0 / 0.6517 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02602/0.7319, allocations: 9.318 MB / 0.6608 GB, free: 7.66 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003123/0.7323, allocations: 196.2 kB / 0.661 GB, free: 7.426 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.956, allocations: 4 kB / 0.661 GB, free: 7.422 MB / 474.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat