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.0009486/0.0009487, allocations: 92.41 kB / 16.93 MB, free: 5.977 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.0009419/0.0009418, allocations: 184.8 kB / 17.82 MB, free: 5.641 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.632/1.632, allocations: 205.4 MB / 224 MB, free: 13.17 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.0005928/0.0005932, allocations: 11.98 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1181, allocations: 47.57 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005746/0.1239, allocations: 3.786 MB / 332.2 MB, free: 208 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.1273, allocations: 1.338 MB / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.1284, allocations: 19.88 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004753/0.1289, allocations: 83.19 kB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009834/0.1299, allocations: 207.3 kB / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1311, allocations: 247.6 kB / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.1326, allocations: 0.6359 MB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006313/0.1332, allocations: 292.6 kB / 335 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004414/0.1337, allocations: 250.8 kB / 335.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002984/0.134, allocations: 270.3 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.461e-05/0.1341, allocations: 28 kB / 335.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.1343, allocations: 59.86 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.1344, allocations: 123.4 kB / 335.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.1345, allocations: 173.2 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006971/0.1352, allocations: 0.748 MB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1352, allocations: 0 / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1353, allocations: 0 / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.1353, allocations: 0 / 336.6 MB, free: 11.73 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.001311/0.1366, allocations: 0.982 MB / 337.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1366, allocations: 12.03 kB / 337.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001354/0.1368, allocations: 130.9 kB / 337.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.1369, allocations: 102.8 kB / 337.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007713/0.1377, allocations: 0.5724 MB / 338.4 MB, free: 9.832 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.1377, allocations: 62 kB / 338.5 MB, free: 9.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.1379, allocations: 83.98 kB / 338.6 MB, free: 9.688 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.1391, allocations: 0.8326 MB / 339.4 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.142e-05/0.1391, allocations: 11.84 kB / 339.4 MB, free: 8.738 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.546e-05/0.1392, allocations: 36 kB / 339.5 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.1392, allocations: 20 kB / 339.5 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008183/0.14, allocations: 467.3 kB / 339.9 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003574/0.1436, allocations: 4.42 MB / 344.4 MB, free: 3.613 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/0.1442, allocations: 299.5 kB / 344.6 MB, free: 3.312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002109/0.1444, allocations: 166.6 kB / 344.8 MB, free: 3.113 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.1444, allocations: 34.94 kB / 344.8 MB, free: 3.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.974e-06/0.1444, allocations: 0 / 344.8 MB, free: 3.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003052/0.1475, allocations: 1.748 MB / 346.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.1475, allocations: 55.97 kB / 346.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005515/0.1481, allocations: 0.5352 MB / 347.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1481, allocations: 33.7 kB / 347.2 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.1484, allocations: 478.4 kB / 347.7 MB, free: 100 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.1486, allocations: 209.2 kB / 347.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.1486, allocations: 20 kB / 347.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1488, allocations: 382.8 kB / 348.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002552/0.149, allocations: 161.9 kB / 348.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/0.1495, allocations: 451.2 kB / 348.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.1499, allocations: 236.7 kB / 349.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1499, allocations: 4 kB / 349.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001049/0.1509, allocations: 0.7376 MB / 349.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.151, allocations: 8 kB / 349.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.151, allocations: 8 kB / 349.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001641/0.1512, allocations: 53.52 kB / 349.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/0.1517, allocations: 191.7 kB / 350.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.1531, allocations: 1.514 MB / 351.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.1534, allocations: 40.05 kB / 351.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.1535, allocations: 32 kB / 351.7 MB, free: 11.8 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.0002942/0.1538, allocations: 237.5 kB / 351.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.713e-05/0.1539, allocations: 75.02 kB / 352 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.154, allocations: 75.08 kB / 352.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.154, allocations: 4 kB / 352.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.154, allocations: 0 / 352.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1541, allocations: 7.984 kB / 352.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.1561, allocations: 1.431 MB / 353.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.1561, allocations: 0 / 353.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.1566, allocations: 123.8 kB / 353.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.44e-05/0.1567, allocations: 24.98 kB / 353.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.402e-05/0.1568, allocations: 12 kB / 353.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000994/0.1578, allocations: 1.284 MB / 354.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1578, allocations: 4 kB / 355 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.159, allocations: 0.904 MB / 355.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.1591, allocations: 140.2 kB / 356 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.586e-05/0.1592, allocations: 16 kB / 356 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.1594, allocations: 16 kB / 356 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.1595, allocations: 43.89 kB / 356.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.1595, allocations: 20 kB / 356.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000387/0.1599, allocations: 351.1 kB / 356.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1599, allocations: 192 / 356.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000636/0.1606, allocations: 140 kB / 356.6 MB, free: 6.531 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.001813/0.1624, allocations: 2.217 MB / 358.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.1634, allocations: 0.5963 MB / 359.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1635, allocations: 0 / 359.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004144/0.1639, allocations: 306.4 kB / 359.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000481/0.1644, allocations: 91.62 kB / 359.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00979/0.1742, allocations: 11.03 MB / 370.8 MB, free: 7.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006967/0.1749, allocations: 0.9851 MB / 371.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.1752, allocations: 85.94 kB / 371.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/0.1756, allocations: 323.3 kB / 372.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1756, allocations: 0 / 372.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2048/0.3804, allocations: 11.54 MB / 383.7 MB, free: 50.72 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.3806, allocations: 215 kB / 383.9 MB, free: 50.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.399, allocations: 3.938 kB / 383.9 MB, free: 50.48 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