Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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) 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(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009835/0.0009834, allocations: 100.9 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 202.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.000325, allocations: 7.984 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1445, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003253/0.1478, allocations: 1.893 MB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1493, allocations: 0.6198 MB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.1494, allocations: 4 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.298e-05/0.1495, allocations: 19.84 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.1498, allocations: 79.75 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.15, allocations: 43.89 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003179/0.1503, allocations: 179.6 kB / 361 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.1505, allocations: 76.62 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.1507, allocations: 83.7 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.1509, allocations: 99.48 kB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.151, allocations: 12 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.283e-05/0.1511, allocations: 12 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.1511, allocations: 35.89 kB / 361.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.547e-05/0.1512, allocations: 65.58 kB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.1515, allocations: 179.7 kB / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1515, allocations: 0 / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1515, allocations: 0 / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1515, allocations: 0 / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007685/0.1523, allocations: 490.9 kB / 362.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1524, allocations: 8.031 kB / 362.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.809e-05/0.1524, allocations: 54.55 kB / 362.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.1527, allocations: 39.7 kB / 362.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.153, allocations: 231.4 kB / 362.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1531, allocations: 12.44 kB / 362.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.1531, allocations: 23.95 kB / 362.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.1537, allocations: 209.8 kB / 362.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.1537, allocations: 7.906 kB / 362.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.1537, allocations: 15.98 kB / 362.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.1538, allocations: 8 kB / 362.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.1542, allocations: 125.7 kB / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.1556, allocations: 0.7132 MB / 363.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.1559, allocations: 147.2 kB / 363.6 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.156, allocations: 4 kB / 363.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.156, allocations: 30.56 kB / 363.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 2.134e-06/0.156, allocations: 0 / 363.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002084/0.1581, allocations: 0.9003 MB / 364.6 MB, free: 7.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.1582, allocations: 55.41 kB / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.1584, allocations: 171.2 kB / 364.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.1584, allocations: 33.7 kB / 364.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1585, allocations: 148.1 kB / 365 MB, free: 6.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.903e-05/0.1586, allocations: 90.73 kB / 365.1 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.1587, allocations: 7.938 kB / 365.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1588, allocations: 334.8 kB / 365.4 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.159, allocations: 55.98 kB / 365.4 MB, free: 6.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.1593, allocations: 100.2 kB / 365.5 MB, free: 6.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.1595, allocations: 68.64 kB / 365.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1595, allocations: 0 / 365.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006493/0.1602, allocations: 254.1 kB / 365.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1602, allocations: 4 kB / 365.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1602, allocations: 4 kB / 365.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.1604, allocations: 40.77 kB / 365.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.1607, allocations: 47.97 kB / 365.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009923/0.1617, allocations: 1.386 MB / 367.3 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.1618, allocations: 12.03 kB / 367.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.1619, allocations: 4 kB / 367.4 MB, free: 4.098 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.162, allocations: 141.8 kB / 367.5 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.162, allocations: 15.81 kB / 367.5 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.1621, allocations: 25.86 kB / 367.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1621, allocations: 4 kB / 367.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1621, allocations: 3.953 kB / 367.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1621, allocations: 0 / 367.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008001/0.1629, allocations: 0.6569 MB / 368.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1629, allocations: 0 / 368.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.1631, allocations: 44.03 kB / 368.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.1632, allocations: 37.11 kB / 368.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1633, allocations: 4 kB / 368.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009656/0.1642, allocations: 1.394 MB / 369.7 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.1642, allocations: 7.922 kB / 369.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.1648, allocations: 436.9 kB / 370.1 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.757e-05/0.1648, allocations: 92.92 kB / 370.2 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.1649, allocations: 4 kB / 370.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.165, allocations: 12.03 kB / 370.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.165, allocations: 19.98 kB / 370.2 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.165, allocations: 4 kB / 370.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.11e-05/0.1651, allocations: 136.8 kB / 370.4 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1651, allocations: 0 / 370.4 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.1654, allocations: 60 kB / 370.4 MB, free: 0.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2008/0.3663, allocations: 1.098 MB / 371.5 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006379/0.367, allocations: 292.5 kB / 371.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.367, allocations: 0 / 371.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.3673, allocations: 213.3 kB / 372 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3677, allocations: 41.19 kB / 372.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.3705, allocations: 2.132 MB / 374.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.3708, allocations: 0.7547 MB / 374.9 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.3709, allocations: 21.06 kB / 375 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3711, allocations: 66.31 kB / 375 MB, free: 16.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.766e-06/0.3711, allocations: 0.5938 kB / 375 MB, free: 16.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.3878, allocations: 4.207 MB / 379.2 MB, free: 16.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.388, allocations: 206.6 kB / 379.4 MB, free: 16.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/2.137, allocations: 1.594 kB / 379.4 MB, free: 16.19 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat