Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001114/0.001114, allocations: 95.14 kB / 16.99 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.00123/0.00123, allocations: 206.6 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.401/1.401, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003989, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1442, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003128/0.1474, allocations: 1.889 MB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.1488, allocations: 0.6121 MB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.149, allocations: 4 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.365e-05/0.1491, allocations: 27.78 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.1494, allocations: 83.8 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.1496, allocations: 39.91 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.15, allocations: 191.6 kB / 361 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.1503, allocations: 89.16 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/0.1506, allocations: 91.7 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.1508, allocations: 99.48 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.1508, allocations: 12 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.299e-05/0.1509, allocations: 12 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.726e-05/0.151, allocations: 35.84 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.482e-05/0.1511, allocations: 69.58 kB / 361.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002852/0.1514, allocations: 187.7 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1514, allocations: 0 / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1514, allocations: 0 / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1514, allocations: 4 kB / 361.6 MB, free: 10.32 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008687/0.1523, allocations: 0.4911 MB / 362.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1523, allocations: 8.031 kB / 362.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.379e-05/0.1524, allocations: 54.55 kB / 362.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.1527, allocations: 35.7 kB / 362.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.153, allocations: 231.4 kB / 362.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.1531, allocations: 24.44 kB / 362.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.994e-05/0.1532, allocations: 27.86 kB / 362.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.1537, allocations: 191.2 kB / 362.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.1537, allocations: 0 / 362.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.1538, allocations: 15.94 kB / 362.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1538, allocations: 4 kB / 362.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004304/0.1542, allocations: 141.7 kB / 362.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.1556, allocations: 0.6386 MB / 363.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.1561, allocations: 184.9 kB / 363.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.1561, allocations: 4 kB / 363.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.1562, allocations: 34.55 kB / 363.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1562, allocations: 0 / 363.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002825/0.159, allocations: 1.085 MB / 364.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.1591, allocations: 51.41 kB / 364.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.1593, allocations: 180 kB / 365 MB, free: 6.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.1594, allocations: 29.7 kB / 365 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1595, allocations: 144.6 kB / 365.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.1596, allocations: 114.3 kB / 365.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.1597, allocations: 8 kB / 365.3 MB, free: 6.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1598, allocations: 338.8 kB / 365.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.1601, allocations: 75.72 kB / 365.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.1603, allocations: 106.8 kB / 365.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.1606, allocations: 89.34 kB / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1606, allocations: 0 / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007498/0.1614, allocations: 288 kB / 366.2 MB, free: 5.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1614, allocations: 7.984 kB / 366.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1614, allocations: 7.953 kB / 366.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.1617, allocations: 36.91 kB / 366.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.1621, allocations: 59.91 kB / 366.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.164, allocations: 1.585 MB / 367.9 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.1641, allocations: 12 kB / 367.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1641, allocations: 8 kB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001373/0.1643, allocations: 145.7 kB / 368 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.1643, allocations: 19.81 kB / 368 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.1644, allocations: 30.7 kB / 368.1 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1644, allocations: 8 kB / 368.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1644, allocations: 0 / 368.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1644, allocations: 0 / 368.1 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.1655, allocations: 0.7824 MB / 368.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.1655, allocations: 3.953 kB / 368.9 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.1657, allocations: 59.89 kB / 368.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.1659, allocations: 40.92 kB / 369 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.1659, allocations: 4 kB / 369 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009892/0.1669, allocations: 1.386 MB / 370.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1669, allocations: 3.938 kB / 370.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006515/0.1675, allocations: 0.519 MB / 370.9 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.1676, allocations: 96.83 kB / 371 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.1677, allocations: 11.95 kB / 371 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.1678, allocations: 8 kB / 371 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.1678, allocations: 28.02 kB / 371 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1679, allocations: 11.98 kB / 371 MB, free: 168 kB / 302.1 MB Notification: Performance of sorting global known variables: time 8.971e-05/0.168, allocations: 131.4 kB / 371.2 MB, free: 36 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.168, allocations: 0 / 371.2 MB, free: 36 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.1998/0.3677, allocations: 66.52 kB / 371.2 MB, free: 19.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.001146/0.3689, allocations: 1.258 MB / 372.5 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007421/0.3697, allocations: 346.1 kB / 372.8 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3697, allocations: 1 kB / 372.8 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003812/0.3701, allocations: 245 kB / 373.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.3705, allocations: 32.44 kB / 373.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.3735, allocations: 1.98 MB / 375.1 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.3738, allocations: 0.7631 MB / 375.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.767e-05/0.3739, allocations: 22.5 kB / 375.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.3741, allocations: 75.09 kB / 375.9 MB, free: 16.29 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3741, allocations: 7.828 kB / 375.9 MB, free: 16.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02549/0.3996, allocations: 4.675 MB / 380.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.3999, allocations: 196.4 kB / 380.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/2.192, allocations: 0 / 380.8 MB, free: 15.66 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat