Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008923/0.0008924, allocations: 94.7 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000984/0.0009842, allocations: 205.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2404/0.2404, allocations: 45.92 MB / 344 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002737, allocations: 8 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1438, allocations: 63.47 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002963/0.1468, allocations: 2.273 MB / 483.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.1479, allocations: 0.7328 MB / 484.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.148, allocations: 8 kB / 484.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.432e-05/0.1481, allocations: 43.69 kB / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.1484, allocations: 127.6 kB / 484.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.1486, allocations: 63.92 kB / 484.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003773/0.149, allocations: 307.3 kB / 485.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.1492, allocations: 104.2 kB / 485.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.1494, allocations: 143.4 kB / 485.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1496, allocations: 155.3 kB / 485.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.1497, allocations: 24 kB / 485.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.912e-05/0.1498, allocations: 28 kB / 485.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.1498, allocations: 59.75 kB / 485.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.05e-05/0.1499, allocations: 97.52 kB / 485.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.1502, allocations: 315.3 kB / 486 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1503, allocations: 0 / 486 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1503, allocations: 0 / 486 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1503, allocations: 0 / 486 MB, free: 0.8008 MB / 350.1 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.0008467/0.1511, allocations: 0.5849 MB / 486.5 MB, free: 172 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.1512, allocations: 12.02 kB / 486.6 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.023e-05/0.1513, allocations: 70.53 kB / 486.6 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.1515, allocations: 63.52 kB / 486.7 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.1519, allocations: 284 kB / 487 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.1519, allocations: 33 kB / 487 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.152, allocations: 39.91 kB / 487 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005766/0.1526, allocations: 390.1 kB / 487.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.1526, allocations: 11.91 kB / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.1526, allocations: 16 kB / 487.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1526, allocations: 8 kB / 487.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004162/0.1531, allocations: 223.7 kB / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.1552, allocations: 1.727 MB / 489.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003869/0.1556, allocations: 270.4 kB / 489.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.1556, allocations: 3.984 kB / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.1556, allocations: 46.5 kB / 489.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.433e-06/0.1556, allocations: 0 / 489.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006265/0.1563, allocations: 277.6 kB / 490 MB, free: 12.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/0.1564, allocations: 209.6 kB / 490.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.1566, allocations: 275.1 kB / 490.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.1567, allocations: 29.7 kB / 490.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.1568, allocations: 239.2 kB / 490.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.602e-05/0.1569, allocations: 126.3 kB / 490.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.614e-05/0.1569, allocations: 12 kB / 490.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1571, allocations: 346.8 kB / 491.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.1573, allocations: 97.27 kB / 491.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.1577, allocations: 424.8 kB / 491.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.158, allocations: 172.2 kB / 491.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.158, allocations: 7.953 kB / 491.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007655/0.1587, allocations: 0.5287 MB / 492.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.1588, allocations: 12 kB / 492.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.1588, allocations: 20.03 kB / 492.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.1588, allocations: 16 kB / 492.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.1593, allocations: 151.7 kB / 492.6 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.1593, allocations: 19.94 kB / 492.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.1596, allocations: 71.36 kB / 492.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.1596, allocations: 32 kB / 492.7 MB, free: 9.477 MB / 366.1 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 () * Number of clocked 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.0001568/0.1598, allocations: 173.6 kB / 492.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.1599, allocations: 35.58 kB / 492.9 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.31e-05/0.16, allocations: 37.78 kB / 493 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.16, allocations: 4 kB / 493 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.16, allocations: 0 / 493 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.16, allocations: 7.984 kB / 493 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.1611, allocations: 0.6475 MB / 493.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1612, allocations: 0 / 493.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.1616, allocations: 91.89 kB / 493.7 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.1616, allocations: 4 kB / 493.7 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.1616, allocations: 11.98 kB / 493.7 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.1616, allocations: 4 kB / 493.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.1616, allocations: 4 kB / 493.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007473/0.1624, allocations: 0.9369 MB / 494.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.463e-05/0.1625, allocations: 104.9 kB / 494.8 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.1625, allocations: 11.98 kB / 494.8 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003227/0.1629, allocations: 12 kB / 494.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/0.1629, allocations: 32.05 kB / 494.8 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.163, allocations: 8 kB / 494.8 MB, free: 7.184 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.1631, allocations: 186 kB / 495 MB, free: 7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1631, allocations: 0 / 495 MB, free: 7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006738/0.1638, allocations: 103.8 kB / 495.1 MB, free: 6.898 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (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.001096/0.1649, allocations: 2.037 MB / 497.2 MB, free: 4.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004933/0.1654, allocations: 297.5 kB / 497.5 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1654, allocations: 0 / 497.5 MB, free: 4.508 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.1656, allocations: 93.39 kB / 497.5 MB, free: 4.418 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.1662, allocations: 69.86 kB / 497.6 MB, free: 4.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0064/0.1726, allocations: 10.92 MB / 0.4966 GB, free: 9.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.173, allocations: 0.8033 MB / 0.4974 GB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.1732, allocations: 43.25 kB / 0.4974 GB, free: 8.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.1734, allocations: 115.4 kB / 0.4975 GB, free: 8.148 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1734, allocations: 0 / 0.4975 GB, free: 8.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01565/0.189, allocations: 5.928 MB / 0.5033 GB, free: 2.375 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.1892, allocations: 190.1 kB / 0.5035 GB, free: 2.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/1.997, allocations: 0 / 0.5035 GB, free: 2.125 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat