Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.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.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",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.001014/0.001014, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001106/0.001106, allocations: 180.4 kB / 17.2 MB, free: 5.914 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.35/1.35, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002522/0.0002522, allocations: 6.188 kB / 300.8 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09803/0.0983, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.002223/0.1006, allocations: 1.92 MB / 353.1 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003988/0.101, allocations: 259.2 kB / 353.4 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1011, allocations: 4 kB / 353.4 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.182e-05/0.1012, allocations: 31.77 kB / 353.4 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001968/0.1014, allocations: 95.72 kB / 353.5 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001426/0.1016, allocations: 51.88 kB / 353.6 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002204/0.1018, allocations: 195.6 kB / 353.8 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.102, allocations: 77.67 kB / 353.8 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.162e-05/0.1021, allocations: 91.64 kB / 353.9 MB, free: 8.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.1022, allocations: 99.55 kB / 354 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.1022, allocations: 16 kB / 354 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.264e-05/0.1023, allocations: 12 kB / 354.1 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.1023, allocations: 39.83 kB / 354.1 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.1024, allocations: 73.58 kB / 354.2 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.1026, allocations: 203.4 kB / 354.4 MB, free: 8.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.1026, allocations: 0 / 354.4 MB, free: 8.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1026, allocations: 0 / 354.4 MB, free: 8.508 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1026, allocations: 0 / 354.4 MB, free: 8.508 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0006739/0.1033, allocations: 0.5145 MB / 354.9 MB, free: 7.945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1033, allocations: 8.031 kB / 354.9 MB, free: 7.938 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.717e-05/0.1034, allocations: 54.55 kB / 354.9 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.147e-05/0.1034, allocations: 35.58 kB / 355 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.1037, allocations: 235.4 kB / 355.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.1037, allocations: 16.56 kB / 355.2 MB, free: 7.551 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.1038, allocations: 24 kB / 355.2 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003565/0.1041, allocations: 243.4 kB / 355.5 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.1042, allocations: 3.906 kB / 355.5 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.1042, allocations: 15.95 kB / 355.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1042, allocations: 4 kB / 355.5 MB, free: 7.254 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.1045, allocations: 155.8 kB / 355.7 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009966/0.1055, allocations: 0.8126 MB / 356.5 MB, free: 6.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004629/0.1059, allocations: 291.6 kB / 356.8 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.106, allocations: 7.984 kB / 356.8 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.106, allocations: 42.78 kB / 356.8 MB, free: 5.859 MB / 286.1 MB Notification: Performance of pre-optimization done (n=33): time 1.846e-05/0.106, allocations: 0 / 356.8 MB, free: 5.859 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.002448/0.1085, allocations: 1.939 MB / 358.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.1085, allocations: 111.8 kB / 358.9 MB, free: 3.527 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.1087, allocations: 180.4 kB / 359 MB, free: 3.336 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.1088, allocations: 37.7 kB / 359.1 MB, free: 3.293 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.1089, allocations: 144.6 kB / 359.2 MB, free: 3.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.109, allocations: 165.6 kB / 359.4 MB, free: 2.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.109, allocations: 8 kB / 359.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1091, allocations: 338.8 kB / 359.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.1093, allocations: 84.84 kB / 359.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.1095, allocations: 162.3 kB / 360 MB, free: 2.367 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.1097, allocations: 108 kB / 360.1 MB, free: 2.262 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1097, allocations: 3.938 kB / 360.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004697/0.1102, allocations: 341.1 kB / 360.4 MB, free: 1.922 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1102, allocations: 10.28 kB / 360.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1102, allocations: 8.094 kB / 360.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1103, allocations: 7.953 kB / 360.4 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.1106, allocations: 91.89 kB / 360.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.1106, allocations: 4 kB / 360.5 MB, free: 1.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.1107, allocations: 12 kB / 360.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.1107, allocations: 12 kB / 360.5 MB, free: 1.781 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 54 * 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.0001375/0.1109, allocations: 149.7 kB / 360.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.862e-05/0.111, allocations: 31.62 kB / 360.7 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.273e-05/0.111, allocations: 37.86 kB / 360.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.1111, allocations: 11.95 kB / 360.8 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1111, allocations: 0 / 360.8 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.1111, allocations: 7.984 kB / 360.8 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.1124, allocations: 1.039 MB / 361.8 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.1124, allocations: 4.281 kB / 361.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003514/0.1127, allocations: 99.83 kB / 361.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.1128, allocations: 4 kB / 361.9 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.1128, allocations: 16 kB / 361.9 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1128, allocations: 4 kB / 361.9 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.1128, allocations: 7.984 kB / 361.9 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008518/0.1137, allocations: 0.8563 MB / 362.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.484e-05/0.1137, allocations: 104.8 kB / 362.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.1138, allocations: 8.062 kB / 362.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.114, allocations: 12 kB / 362.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.114, allocations: 35.86 kB / 363 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.1141, allocations: 19.98 kB / 363 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.1142, allocations: 131.3 kB / 363.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1142, allocations: 4 kB / 363.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.1146, allocations: 72 kB / 363.2 MB, free: 14.92 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * 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 (45): * Single equations (assignments): 45 * 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.001302/0.1159, allocations: 2.161 MB / 365.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.1163, allocations: 264.5 kB / 365.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1163, allocations: 0 / 365.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.1165, allocations: 147.7 kB / 365.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.117, allocations: 54.64 kB / 365.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.1199, allocations: 2.902 MB / 368.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.1203, allocations: 0.7801 MB / 369.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.1204, allocations: 34.95 kB / 369.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.1206, allocations: 87.42 kB / 369.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1206, allocations: 0 / 369.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.1368, allocations: 5.302 MB / 374.9 MB, free: 3.113 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.137, allocations: 181.4 kB / 375.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/1.954, allocations: 2.25 kB / 375.1 MB, free: 2.875 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat does not exist to compare? outputFormat=mat