Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions.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.InitialConditions,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 94.06 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.001115/0.001116, allocations: 205 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.493/1.493, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003116, allocations: 8 kB / 306.7 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1225, allocations: 51.49 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.InitialConditions): time 0.00248/0.125, allocations: 1.974 MB / 360.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004559/0.1254, allocations: 267.2 kB / 360.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.1256, allocations: 7.938 kB / 360.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.067e-05/0.1256, allocations: 31.75 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.1259, allocations: 99.7 kB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001435/0.126, allocations: 55.94 kB / 360.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.1263, allocations: 215.6 kB / 360.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.1265, allocations: 86.64 kB / 360.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.577e-05/0.1266, allocations: 95.66 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.1268, allocations: 119.5 kB / 361.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.1269, allocations: 16 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.424e-05/0.1269, allocations: 15.94 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.048e-05/0.127, allocations: 43.84 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.795e-05/0.127, allocations: 73.58 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.1273, allocations: 227.6 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1273, allocations: 0 / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1273, allocations: 3.938 kB / 361.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1273, allocations: 0 / 361.5 MB, free: 10.67 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007118/0.128, allocations: 0.5262 MB / 362 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.128, allocations: 8.031 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.7e-05/0.1281, allocations: 62.53 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.1282, allocations: 27.72 kB / 362.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.1284, allocations: 246.5 kB / 362.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1285, allocations: 16.56 kB / 362.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.652e-05/0.1285, allocations: 35.95 kB / 362.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.129, allocations: 250.6 kB / 362.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.129, allocations: 7.891 kB / 362.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.129, allocations: 12 kB / 362.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.129, allocations: 4 kB / 362.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.1293, allocations: 175.8 kB / 362.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.1304, allocations: 0.7539 MB / 363.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.1308, allocations: 279.3 kB / 363.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.1308, allocations: 4 kB / 363.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1309, allocations: 42.56 kB / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.492e-06/0.1309, allocations: 0 / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.002981/0.1339, allocations: 1.713 MB / 365.6 MB, free: 6.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.1339, allocations: 81.11 kB / 365.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.1341, allocations: 182.2 kB / 365.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1342, allocations: 37.7 kB / 365.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1343, allocations: 140.7 kB / 366.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.1344, allocations: 177.4 kB / 366.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.1345, allocations: 8 kB / 366.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1346, allocations: 338.8 kB / 366.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.1348, allocations: 105.1 kB / 366.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.1351, allocations: 153.4 kB / 366.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.1353, allocations: 128.2 kB / 367 MB, free: 4.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1353, allocations: 0 / 367 MB, free: 4.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004979/0.1358, allocations: 370.3 kB / 367.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1358, allocations: 4 kB / 367.3 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1358, allocations: 0 / 367.3 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1359, allocations: 4 kB / 367.3 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.1363, allocations: 107.8 kB / 367.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.1363, allocations: 11.92 kB / 367.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.1364, allocations: 16 kB / 367.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.1365, allocations: 16.06 kB / 367.5 MB, free: 4.266 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (58): * Single equations (assignments): 58 * 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.0001482/0.1366, allocations: 149.8 kB / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.1367, allocations: 31.66 kB / 367.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.822e-05/0.1368, allocations: 33.88 kB / 367.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1368, allocations: 8 kB / 367.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/0.1368, allocations: 0 / 367.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.1368, allocations: 11.91 kB / 367.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.1382, allocations: 0.9561 MB / 368.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1382, allocations: 64 / 368.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003914/0.1386, allocations: 95.89 kB / 368.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.1386, allocations: 4 kB / 368.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.1386, allocations: 12 kB / 368.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.1386, allocations: 7.938 kB / 368.8 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1386, allocations: 4 kB / 368.8 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007257/0.1394, allocations: 0.6719 MB / 369.5 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.864e-05/0.1394, allocations: 96.83 kB / 369.6 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.1395, allocations: 12 kB / 369.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.1396, allocations: 4 kB / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.1397, allocations: 31.95 kB / 369.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.1397, allocations: 16 kB / 369.6 MB, free: 2.004 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1399, allocations: 127.2 kB / 369.7 MB, free: 1.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1399, allocations: 0 / 369.7 MB, free: 1.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.1402, allocations: 76 kB / 369.8 MB, free: 1.805 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (m1.s,m1.v,sd1.s_rel,sd1.v_rel,sd2.s_rel,sd2.v_rel,m4.s,m4.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 (48): * Single equations (assignments): 48 * 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.001052/0.1413, allocations: 1.431 MB / 371.2 MB, free: 328 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004448/0.1417, allocations: 282.8 kB / 371.5 MB, free: 48 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1417, allocations: 0 / 371.5 MB, free: 48 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1979/0.3397, allocations: 156.8 kB / 371.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007407/0.3405, allocations: 55.14 kB / 371.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.3448, allocations: 2.628 MB / 374.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.3451, allocations: 0.7847 MB / 375.1 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.3453, allocations: 33.64 kB / 375.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.3456, allocations: 95.52 kB / 375.3 MB, free: 17.58 MB / 302.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3456, allocations: 0 / 375.3 MB, free: 17.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.3665, allocations: 5.502 MB / 380.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.3667, allocations: 192.8 kB / 381 MB, free: 16.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.318, allocations: 3.938 kB / 381 MB, free: 16.97 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_InitialConditions_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat does not exist to compare? outputFormat=mat