Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009916/0.0009918, allocations: 101.9 kB / 17.01 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 197.1 kB / 17.91 MB, free: 5.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.3 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002736/0.0002736, allocations: 8 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1195, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004323/0.1238, allocations: 3.921 MB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.1263, allocations: 1.318 MB / 363.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004165/0.1268, allocations: 23.81 kB / 363.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.1271, allocations: 122.9 kB / 363.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1274, allocations: 126.8 kB / 363.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/0.1281, allocations: 247.7 kB / 364.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008206/0.129, allocations: 0.8529 MB / 364.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000437/0.1294, allocations: 300.3 kB / 365.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003345/0.1297, allocations: 242.8 kB / 365.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.13, allocations: 274.2 kB / 365.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.1301, allocations: 32 kB / 365.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.1303, allocations: 75.97 kB / 365.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.624e-05/0.1304, allocations: 111.4 kB / 365.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.1305, allocations: 173.2 kB / 366.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006337/0.1312, allocations: 0.756 MB / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1312, allocations: 0 / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1312, allocations: 0 / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1312, allocations: 0 / 366.8 MB, free: 5.379 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001277/0.1325, allocations: 0.9938 MB / 367.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.1325, allocations: 8.031 kB / 367.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.1327, allocations: 122.9 kB / 368 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002381/0.1329, allocations: 118.7 kB / 368.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000793/0.1337, allocations: 0.5803 MB / 368.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.164e-05/0.1338, allocations: 61.95 kB / 368.7 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1339, allocations: 83.91 kB / 368.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.1352, allocations: 0.8365 MB / 369.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.1352, allocations: 11.84 kB / 369.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.364e-05/0.1353, allocations: 40 kB / 369.7 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.1353, allocations: 20 kB / 369.7 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008273/0.1362, allocations: 467.3 kB / 370.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2185/0.3546, allocations: 4.393 MB / 374.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007454/0.3554, allocations: 303.9 kB / 374.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.3556, allocations: 146.7 kB / 375 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/0.3558, allocations: 177.2 kB / 375.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.3559, allocations: 36.25 kB / 375.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.884e-06/0.3559, allocations: 0 / 375.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003512/0.3594, allocations: 1.736 MB / 376.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.3595, allocations: 61.97 kB / 377 MB, free: 14.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00072/0.3602, allocations: 0.5306 MB / 377.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3602, allocations: 33.7 kB / 377.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.3605, allocations: 475.8 kB / 378 MB, free: 14.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3606, allocations: 213 kB / 378.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.3607, allocations: 17.88 kB / 378.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.3608, allocations: 388.6 kB / 378.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.3611, allocations: 158.3 kB / 378.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004166/0.3615, allocations: 454.8 kB / 379.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003609/0.3619, allocations: 235.4 kB / 379.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3619, allocations: 6.656 kB / 379.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001099/0.363, allocations: 0.7308 MB / 380.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.363, allocations: 15.97 kB / 380.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.363, allocations: 13.88 kB / 380.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.3632, allocations: 57.19 kB / 380.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.3638, allocations: 186.6 kB / 380.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009764/0.3648, allocations: 1.507 MB / 382 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.3651, allocations: 26.53 kB / 382 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.3652, allocations: 39.75 kB / 382 MB, free: 11.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003099/0.3655, allocations: 237.7 kB / 382.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-05/0.3656, allocations: 81.48 kB / 382.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.3657, allocations: 77.77 kB / 382.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3657, allocations: 5.094 kB / 382.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.3657, allocations: 0.9688 kB / 382.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.3657, allocations: 3.047 kB / 382.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.3677, allocations: 1.411 MB / 383.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.3677, allocations: 4.719 kB / 383.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004686/0.3682, allocations: 117.9 kB / 384 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.372e-05/0.3683, allocations: 27.67 kB / 384 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.3683, allocations: 20.03 kB / 384 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006333/0.369, allocations: 1.274 MB / 385.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.369, allocations: 8.844 kB / 385.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009928/0.37, allocations: 0.7772 MB / 386.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.3701, allocations: 136.4 kB / 386.2 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.3702, allocations: 16.61 kB / 386.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3704, allocations: 16.64 kB / 386.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.129e-05/0.3705, allocations: 42.89 kB / 386.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.3705, allocations: 18.45 kB / 386.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004542/0.371, allocations: 352.6 kB / 386.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.371, allocations: 5.719 kB / 386.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007658/0.3718, allocations: 141.1 kB / 386.8 MB, free: 8.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.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 (56): * Single equations (assignments): 55 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001151/0.3729, allocations: 1.343 MB / 388.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.374, allocations: 0.5838 MB / 388.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.374, allocations: 1.5 kB / 388.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004458/0.3744, allocations: 324.1 kB / 389 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006217/0.3751, allocations: 89.95 kB / 389.1 MB, free: 6.711 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006774/0.3819, allocations: 4.72 MB / 393.8 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.3824, allocations: 0.9653 MB / 394.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003585/0.3828, allocations: 89.05 kB / 394.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003494/0.3832, allocations: 322 kB / 395.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3832, allocations: 0 / 395.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.4108, allocations: 11.58 MB / 406.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.4111, allocations: 213.7 kB / 407 MB, free: 11.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/2.492, allocations: 0 / 407 MB, free: 11.84 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat