Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",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.001012/0.001012, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001222/0.001222, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.359/1.359, allocations: 223.2 MB / 241.2 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002612/0.0002613, allocations: 8 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 50.42 MB / 351.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003203/0.1196, allocations: 2.017 MB / 353.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1208, allocations: 0.5495 MB / 353.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.121, allocations: 4 kB / 353.9 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1211, allocations: 31.77 kB / 353.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.1213, allocations: 59.48 kB / 354 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.1216, allocations: 43.95 kB / 354 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000327/0.1219, allocations: 242.8 kB / 354.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.1221, allocations: 73.34 kB / 354.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.1223, allocations: 87.7 kB / 354.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.1225, allocations: 87.56 kB / 354.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.1225, allocations: 8 kB / 354.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.375e-05/0.1226, allocations: 12 kB / 354.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.088e-05/0.1226, allocations: 35.84 kB / 354.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.351e-05/0.1227, allocations: 65.58 kB / 354.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.123, allocations: 183.7 kB / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.123, allocations: 0 / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.123, allocations: 4 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.123, allocations: 0 / 354.8 MB, free: 396 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008521/0.1239, allocations: 495 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.1239, allocations: 12.03 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.8e-05/0.124, allocations: 58.53 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.1241, allocations: 27.67 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.1244, allocations: 232.2 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.1244, allocations: 16.44 kB / 355.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.704e-05/0.1245, allocations: 16 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005213/0.125, allocations: 221.3 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1251, allocations: 7.906 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.1251, allocations: 8 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1251, allocations: 7.953 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/0.1256, allocations: 152.4 kB / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.127, allocations: 0.7919 MB / 356.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.1276, allocations: 208.9 kB / 357 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003064/0.1279, allocations: 113.6 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.128, allocations: 4.25 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.128, allocations: 30.56 kB / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.128, allocations: 0 / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002042/0.1301, allocations: 0.8879 MB / 358.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.1301, allocations: 85.05 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.1304, allocations: 178.2 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.1304, allocations: 29.7 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1305, allocations: 148.3 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.996e-05/0.1306, allocations: 90.59 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.1307, allocations: 12 kB / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1308, allocations: 330.8 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.131, allocations: 67.95 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.1313, allocations: 112.8 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.1315, allocations: 82.72 kB / 359.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1315, allocations: 0 / 359.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005976/0.1322, allocations: 249.6 kB / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.1322, allocations: 4 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1322, allocations: 4 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1322, allocations: 3.984 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.1326, allocations: 67.91 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.1326, allocations: 0 / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1328, allocations: 23.94 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.1328, allocations: 8 kB / 359.5 MB, free: 11.31 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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.0001671/0.133, allocations: 141.7 kB / 359.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.982e-05/0.1331, allocations: 19.81 kB / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.079e-05/0.1332, allocations: 25.88 kB / 359.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1332, allocations: 4 kB / 359.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1332, allocations: 0 / 359.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1332, allocations: 3.984 kB / 359.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.1344, allocations: 0.5943 MB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1344, allocations: 0 / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.1348, allocations: 64 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.1348, allocations: 0 / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.1348, allocations: 11.98 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1348, allocations: 0 / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.1348, allocations: 7.938 kB / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009006/0.1357, allocations: 0.4892 MB / 360.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.559e-05/0.1358, allocations: 92.83 kB / 361 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.351e-05/0.1359, allocations: 8 kB / 361 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.1361, allocations: 20.03 kB / 361 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.147e-05/0.1362, allocations: 23.88 kB / 361 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.1363, allocations: 7.984 kB / 361 MB, free: 9.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.1364, allocations: 136.2 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1364, allocations: 0 / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005264/0.1369, allocations: 52 kB / 361.2 MB, free: 9.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.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 (26): * Single equations (assignments): 26 * 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.001271/0.1382, allocations: 1.035 MB / 362.3 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005217/0.1388, allocations: 180.3 kB / 362.4 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1388, allocations: 4.188 kB / 362.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.139, allocations: 95.84 kB / 362.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007245/0.1398, allocations: 40.3 kB / 362.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.1429, allocations: 1.602 MB / 364.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.1434, allocations: 0.7484 MB / 364.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.1435, allocations: 17.95 kB / 364.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.1437, allocations: 71.41 kB / 365 MB, free: 5.578 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1437, allocations: 0 / 365 MB, free: 5.578 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01854/0.1622, allocations: 3.908 MB / 368.9 MB, free: 1.816 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002472/0.1625, allocations: 196.7 kB / 369.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/1.994, allocations: 0 / 369.1 MB, free: 1.57 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat