Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.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.Translational.Examples.SignConvention,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 99.92 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003082, allocations: 8 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.002492/0.1286, allocations: 1.753 MB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004061/0.129, allocations: 167.4 kB / 360.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1292, allocations: 7.938 kB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1293, allocations: 19.8 kB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.353e-05/0.1294, allocations: 39.69 kB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.1296, allocations: 35.95 kB / 360.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.1299, allocations: 159.3 kB / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.1301, allocations: 61.55 kB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.964e-05/0.1301, allocations: 55.78 kB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.1303, allocations: 59.7 kB / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.1303, allocations: 12 kB / 360.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.797e-05/0.1304, allocations: 11.94 kB / 360.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.087e-05/0.1304, allocations: 19.92 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.052e-05/0.1305, allocations: 57.64 kB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.1307, allocations: 131.9 kB / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.1307, allocations: 0 / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1307, allocations: 0 / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.1307, allocations: 4 kB / 360.9 MB, free: 11.39 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007085/0.1314, allocations: 438.8 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.1315, allocations: 8.031 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.513e-05/0.1316, allocations: 50.55 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.659e-05/0.1316, allocations: 15.81 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.1319, allocations: 218.8 kB / 361.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.1319, allocations: 15.95 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.132, allocations: 12 kB / 361.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.1323, allocations: 189.6 kB / 361.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.1324, allocations: 3.906 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.1324, allocations: 12 kB / 361.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1324, allocations: 4 kB / 361.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.1326, allocations: 95.88 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1338, allocations: 0.9584 MB / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.134, allocations: 107.7 kB / 363 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.592e-05/0.134, allocations: 38.75 kB / 363 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.134, allocations: 0 / 363 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.1341, allocations: 34.56 kB / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.1341, allocations: 4 kB / 363 MB, free: 8.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002993/0.1344, allocations: 133.8 kB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.1344, allocations: 106.8 kB / 363.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.1346, allocations: 203.8 kB / 363.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1347, allocations: 29.7 kB / 363.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.1348, allocations: 139.9 kB / 363.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.1348, allocations: 51.2 kB / 363.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-06/0.1348, allocations: 8 kB / 363.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.135, allocations: 326.8 kB / 364 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-05/0.1351, allocations: 48.38 kB / 364.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.1352, allocations: 138.6 kB / 364.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.1353, allocations: 64 kB / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1353, allocations: 0 / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003138/0.1357, allocations: 209.1 kB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.1357, allocations: 8 kB / 364.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1357, allocations: 4.406 kB / 364.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1357, allocations: 8 kB / 364.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.1359, allocations: 55.91 kB / 364.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.1359, allocations: 4 kB / 364.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.136, allocations: 23.69 kB / 364.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.1361, allocations: 19.95 kB / 364.6 MB, free: 7.297 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001473/0.1362, allocations: 134.7 kB / 364.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.937e-05/0.1363, allocations: 15.81 kB / 364.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.742e-05/0.1364, allocations: 20.92 kB / 364.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1364, allocations: 8 kB / 364.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.1364, allocations: 0 / 364.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.1364, allocations: 3.938 kB / 364.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004117/0.1368, allocations: 245.5 kB / 365 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1368, allocations: 0 / 365 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.137, allocations: 31.98 kB / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.137, allocations: 4 kB / 365 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.137, allocations: 3.938 kB / 365.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.137, allocations: 4 kB / 365.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.137, allocations: 0 / 365.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003681/0.1374, allocations: 389.7 kB / 365.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.616e-05/0.1375, allocations: 88.92 kB / 365.5 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.1375, allocations: 8.062 kB / 365.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.1376, allocations: 4.109 kB / 365.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.1377, allocations: 8 kB / 365.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.1377, allocations: 8 kB / 365.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.1378, allocations: 153.5 kB / 365.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1378, allocations: 0 / 365.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003604/0.1382, allocations: 39.94 kB / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (mass1.s,mass1.v,mass2.s,mass2.v,mass3.s,mass3.v) * 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 (12): * Single equations (assignments): 12 * 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.0005647/0.1388, allocations: 0.9218 MB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001923/0.139, allocations: 111.8 kB / 366.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.139, allocations: 0 / 366.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.574e-05/0.139, allocations: 31.92 kB / 366.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.1396, allocations: 34.73 kB / 366.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.1415, allocations: 1.458 MB / 368.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.1419, allocations: 0.7245 MB / 369 MB, free: 2.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.995e-05/0.142, allocations: 21.94 kB / 369 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.819e-05/0.1421, allocations: 47.42 kB / 369.1 MB, free: 2.566 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1421, allocations: 4 kB / 369.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1981/0.3402, allocations: 3.1 MB / 372.2 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.3404, allocations: 196 kB / 372.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.104, allocations: 3.094 kB / 372.4 MB, free: 18.24 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat does not exist to compare? outputFormat=mat