Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.0008163/0.0008163, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.000851/0.000851, allocations: 182.2 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 223.3 MB / 241.2 MB, free: 5.402 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002637, allocations: 6.875 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1013, allocations: 50.42 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004188/0.1055, allocations: 3.915 MB / 355.3 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.1076, allocations: 1.259 MB / 356.5 MB, free: 6.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003553/0.108, allocations: 19.88 kB / 356.5 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.1083, allocations: 126.9 kB / 356.7 MB, free: 6.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.1086, allocations: 130.8 kB / 356.8 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006562/0.1092, allocations: 235.7 kB / 357 MB, free: 5.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000801/0.11, allocations: 0.8568 MB / 357.9 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004361/0.1105, allocations: 292.3 kB / 358.2 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.1108, allocations: 250.7 kB / 358.4 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.1111, allocations: 274.3 kB / 358.7 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.702e-05/0.1111, allocations: 31.94 kB / 358.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.1113, allocations: 67.92 kB / 358.8 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.952e-05/0.1114, allocations: 111.4 kB / 358.9 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.1116, allocations: 181.2 kB / 359.1 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006608/0.1122, allocations: 0.7518 MB / 359.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.1123, allocations: 0 / 359.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1123, allocations: 0 / 359.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.1123, allocations: 0 / 359.8 MB, free: 3.031 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.001346/0.1136, allocations: 0.9805 MB / 360.8 MB, free: 2.004 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1137, allocations: 16.03 kB / 360.8 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.1138, allocations: 134.8 kB / 360.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.114, allocations: 110.7 kB / 361 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007739/0.1147, allocations: 0.5648 MB / 361.6 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.142e-05/0.1148, allocations: 62 kB / 361.7 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.1149, allocations: 83.89 kB / 361.7 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.1163, allocations: 0.8443 MB / 362.6 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.1163, allocations: 11.94 kB / 362.6 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.828e-05/0.1164, allocations: 32.08 kB / 362.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.1164, allocations: 27.95 kB / 362.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008611/0.1173, allocations: 467.3 kB / 363.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003688/0.121, allocations: 4.4 MB / 367.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005605/0.1216, allocations: 295.6 kB / 367.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.1218, allocations: 141.6 kB / 367.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001967/0.122, allocations: 174.6 kB / 368.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.122, allocations: 38.88 kB / 368.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 5.16e-06/0.1221, allocations: 4 kB / 368.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003132/0.1252, allocations: 1.745 MB / 369.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.1252, allocations: 55.97 kB / 370 MB, free: 8.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005735/0.1258, allocations: 0.5314 MB / 370.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.1259, allocations: 37.7 kB / 370.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/0.1262, allocations: 478.4 kB / 371 MB, free: 7.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.1263, allocations: 213 kB / 371.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.1264, allocations: 20 kB / 371.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1265, allocations: 382.8 kB / 371.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.1268, allocations: 153.9 kB / 371.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004504/0.1273, allocations: 459.1 kB / 372.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.1276, allocations: 240.7 kB / 372.4 MB, free: 5.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.1276, allocations: 4 kB / 372.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001004/0.1286, allocations: 0.7307 MB / 373.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.1287, allocations: 12 kB / 373.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.1287, allocations: 8 kB / 373.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.1289, allocations: 56.84 kB / 373.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.1294, allocations: 183.7 kB / 373.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.1307, allocations: 1.51 MB / 374.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.1309, allocations: 27.98 kB / 375 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/0.131, allocations: 40 kB / 375 MB, free: 2.957 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.0002912/0.1313, allocations: 233.5 kB / 375.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.836e-05/0.1314, allocations: 71.09 kB / 375.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.1315, allocations: 87.06 kB / 375.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.1315, allocations: 8.188 kB / 375.4 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1315, allocations: 4 kB / 375.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1315, allocations: 0 / 375.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.1333, allocations: 1.417 MB / 376.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1333, allocations: 0 / 376.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000441/0.1338, allocations: 119.8 kB / 376.9 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.868e-05/0.1339, allocations: 28.84 kB / 376.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.1339, allocations: 8 kB / 377 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00081/0.1347, allocations: 1.272 MB / 378.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1347, allocations: 0 / 378.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009544/0.1357, allocations: 0.784 MB / 379 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.1358, allocations: 140.2 kB / 379.1 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.1359, allocations: 19.98 kB / 379.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.1361, allocations: 16 kB / 379.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.306e-05/0.1361, allocations: 43.89 kB / 379.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.1362, allocations: 20 kB / 379.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003643/0.1365, allocations: 359.1 kB / 379.6 MB, free: 14.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1366, allocations: 0 / 379.6 MB, free: 14.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006513/0.1372, allocations: 136 kB / 379.7 MB, free: 13.89 MB / 318.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.001275/0.1385, allocations: 1.36 MB / 381.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009421/0.1394, allocations: 0.5728 MB / 381.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1395, allocations: 0 / 381.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.1398, allocations: 315.4 kB / 382 MB, free: 11.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.1404, allocations: 93.14 kB / 382.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00601/0.1465, allocations: 4.724 MB / 386.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.147, allocations: 0.9691 MB / 387.8 MB, free: 5.535 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.1473, allocations: 85.92 kB / 387.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003709/0.1476, allocations: 327.7 kB / 388.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1477, allocations: 4 kB / 388.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02697/0.1746, allocations: 11.57 MB / 399.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/0.1749, allocations: 218.8 kB / 399.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.25, allocations: 4 kB / 400 MB, free: 9.523 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat