Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009416/0.0009415, allocations: 93.27 kB / 16.95 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009909/0.000991, allocations: 178.1 kB / 17.83 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007957/0.000796, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1266, allocations: 47.59 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004809/0.1314, allocations: 3.898 MB / 332.4 MB, free: 52 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.1347, allocations: 1.303 MB / 333.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009944/0.1358, allocations: 23.88 kB / 333.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006507/0.1364, allocations: 126.9 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.1376, allocations: 130.8 kB / 333.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.1388, allocations: 243.7 kB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001886/0.1407, allocations: 0.8491 MB / 335 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008563/0.1416, allocations: 292.6 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006785/0.1423, allocations: 250.7 kB / 335.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006281/0.143, allocations: 274.3 kB / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.1432, allocations: 28 kB / 335.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.1435, allocations: 67.92 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.1436, allocations: 111.4 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002812/0.1439, allocations: 177.2 kB / 336.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009411/0.1449, allocations: 0.7595 MB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1449, allocations: 4 kB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1449, allocations: 0 / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.393e-05/0.145, allocations: 0 / 337 MB, free: 11.41 MB / 286.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.002137/0.1471, allocations: 0.9821 MB / 337.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1472, allocations: 12.03 kB / 338 MB, free: 10.37 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002627/0.1474, allocations: 130.9 kB / 338.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.1476, allocations: 102.8 kB / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.1487, allocations: 0.5724 MB / 338.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.1487, allocations: 62 kB / 338.8 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.1488, allocations: 79.98 kB / 338.9 MB, free: 9.371 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1504, allocations: 0.8481 MB / 339.7 MB, free: 8.418 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.187e-05/0.1505, allocations: 7.906 kB / 339.7 MB, free: 8.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.907e-05/0.1506, allocations: 32 kB / 339.8 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.1506, allocations: 27.94 kB / 339.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1517, allocations: 471.2 kB / 340.3 MB, free: 7.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00418/0.1559, allocations: 4.408 MB / 344.7 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.1565, allocations: 307.5 kB / 345 MB, free: 2.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.1567, allocations: 141.5 kB / 345.1 MB, free: 2.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002396/0.157, allocations: 166.6 kB / 345.3 MB, free: 2.641 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.157, allocations: 38.94 kB / 345.3 MB, free: 2.594 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.144e-06/0.157, allocations: 4 kB / 345.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003258/0.1603, allocations: 1.728 MB / 347 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.1604, allocations: 55.97 kB / 347.1 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006383/0.161, allocations: 0.5352 MB / 347.6 MB, free: 156 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.1611, allocations: 37.7 kB / 347.7 MB, free: 112 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003375/0.1614, allocations: 478.4 kB / 348.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.1616, allocations: 217 kB / 348.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/0.1616, allocations: 16 kB / 348.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.1618, allocations: 378.8 kB / 348.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.1621, allocations: 165.9 kB / 348.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.1626, allocations: 455.2 kB / 349.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.163, allocations: 240.7 kB / 349.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.163, allocations: 7.953 kB / 349.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001209/0.1643, allocations: 0.7306 MB / 350.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.1643, allocations: 12 kB / 350.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.1643, allocations: 8 kB / 350.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/0.1645, allocations: 52.91 kB / 350.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000554/0.1651, allocations: 179.7 kB / 350.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.1664, allocations: 1.518 MB / 352.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.1667, allocations: 24 kB / 352.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/0.1668, allocations: 40 kB / 352.1 MB, free: 11.34 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.0003301/0.1671, allocations: 233.5 kB / 352.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.1673, allocations: 79.02 kB / 352.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.1674, allocations: 79.14 kB / 352.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.1674, allocations: 8 kB / 352.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.1674, allocations: 0 / 352.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.1674, allocations: 3.984 kB / 352.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.1696, allocations: 1.427 MB / 354 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.1696, allocations: 4 kB / 354 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.1701, allocations: 119.8 kB / 354.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.644e-05/0.1702, allocations: 24.86 kB / 354.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.1702, allocations: 15.98 kB / 354.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008984/0.1711, allocations: 1.272 MB / 355.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.1711, allocations: 7.938 kB / 355.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1722, allocations: 0.7766 MB / 356.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.1724, allocations: 136.2 kB / 356.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.105e-05/0.1724, allocations: 16 kB / 356.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.1726, allocations: 16 kB / 356.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.1727, allocations: 47.94 kB / 356.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.1728, allocations: 15.98 kB / 356.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004321/0.1732, allocations: 355.1 kB / 356.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.866e-06/0.1732, allocations: 0 / 356.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007523/0.174, allocations: 143.9 kB / 356.9 MB, free: 6.266 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.001503/0.1755, allocations: 1.344 MB / 358.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.1766, allocations: 0.5729 MB / 358.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1766, allocations: 4 kB / 358.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.177, allocations: 307.3 kB / 359.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.1777, allocations: 103 kB / 359.2 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007166/0.1848, allocations: 4.719 MB / 363.9 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006101/0.1855, allocations: 0.9613 MB / 364.9 MB, free: 13.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003061/0.1858, allocations: 85.94 kB / 365 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003946/0.1862, allocations: 327.3 kB / 365.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1862, allocations: 3.938 kB / 365.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.2161, allocations: 11.57 MB / 376.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.2164, allocations: 230.2 kB / 377.1 MB, free: 1.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/2.506, allocations: 3.938 kB / 377.1 MB, free: 1.676 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat