Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00146/0.00146, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.174/2.174, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001114, allocations: 90.86 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.744e-05/2.745e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3586, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.4933, allocations: 75.42 MB / 437.8 MB, free: 10.81 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.4936, allocations: 67.95 kB / 437.9 MB, free: 10.75 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0181/0.5118, allocations: 4.125 MB / 442 MB, free: 6.656 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5118, allocations: 0 / 442 MB, free: 6.656 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.972e-05/0.5119, allocations: 4 kB / 442 MB, free: 6.652 MB / 331.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.0008707/0.5127, allocations: 485.5 kB / 442.5 MB, free: 6.137 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5128, allocations: 8.031 kB / 442.5 MB, free: 6.129 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.44e-05/0.5129, allocations: 31.62 kB / 442.6 MB, free: 6.098 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.5133, allocations: 236.2 kB / 442.8 MB, free: 5.824 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.5133, allocations: 8 kB / 442.8 MB, free: 5.816 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.086e-05/0.5134, allocations: 17.2 kB / 442.8 MB, free: 5.801 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004473/0.5139, allocations: 141.1 kB / 442.9 MB, free: 5.66 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005489/0.5144, allocations: 198.4 kB / 443.1 MB, free: 5.449 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.5145, allocations: 11.84 kB / 443.2 MB, free: 5.438 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.5145, allocations: 0 / 443.2 MB, free: 5.438 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.5145, allocations: 4 kB / 443.2 MB, free: 5.434 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.5161, allocations: 0.7486 MB / 443.9 MB, free: 4.641 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006915/0.5168, allocations: 259 kB / 444.2 MB, free: 4.363 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.5172, allocations: 118.6 kB / 444.3 MB, free: 4.238 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.5172, allocations: 4 kB / 444.3 MB, free: 4.234 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.5173, allocations: 50.98 kB / 444.3 MB, free: 4.176 MB / 331.1 MB Notification: Performance of pre-optimization done (n=33): time 3.657e-06/0.5173, allocations: 0 / 444.3 MB, free: 4.176 MB / 331.1 MB Notification: Performance of matching and sorting (n=45): time 0.003495/0.5208, allocations: 1.733 MB / 446.1 MB, free: 2.188 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.985e-05/0.521, allocations: 114.7 kB / 446.2 MB, free: 2.051 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/0.5212, allocations: 133.5 kB / 446.3 MB, free: 1.914 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.5212, allocations: 25.7 kB / 446.3 MB, free: 1.883 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.5214, allocations: 211.2 kB / 446.5 MB, free: 1.676 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.5215, allocations: 157.7 kB / 446.7 MB, free: 1.52 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.5216, allocations: 0 / 446.7 MB, free: 1.52 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.5218, allocations: 326.8 kB / 447 MB, free: 1.191 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.522, allocations: 76.88 kB / 447.1 MB, free: 1.117 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.5223, allocations: 138.9 kB / 447.2 MB, free: 0.9609 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.5226, allocations: 108.6 kB / 447.3 MB, free: 0.8555 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.5226, allocations: 0 / 447.3 MB, free: 0.8555 MB / 331.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007305/0.5234, allocations: 281.2 kB / 447.6 MB, free: 0.5742 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.5234, allocations: 5.719 kB / 447.6 MB, free: 0.5703 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.5234, allocations: 4 kB / 447.6 MB, free: 0.5664 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.5235, allocations: 4 kB / 447.6 MB, free: 0.5625 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000648/0.5241, allocations: 97.2 kB / 447.7 MB, free: 480 kB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.5242, allocations: 10.91 kB / 447.7 MB, free: 472 kB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.5244, allocations: 4 kB / 447.7 MB, free: 468 kB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.5244, allocations: 8 kB / 447.7 MB, free: 460 kB / 331.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 () * 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.0001433/0.5246, allocations: 120.2 kB / 447.8 MB, free: 336 kB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006682/0.5253, allocations: 250.1 kB / 448.1 MB, free: 80 kB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.5254, allocations: 27.72 kB / 448.1 MB, free: 52 kB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.5255, allocations: 29.95 kB / 448.1 MB, free: 24 kB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.5255, allocations: 8.031 kB / 448.2 MB, free: 16 kB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5255, allocations: 3.938 kB / 448.2 MB, free: 12 kB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.5256, allocations: 11.98 kB / 448.2 MB, free: 0 / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.5277, allocations: 0.9598 MB / 449.1 MB, free: 14.97 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.5278, allocations: 0.875 kB / 449.1 MB, free: 14.97 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007464/0.5285, allocations: 100.1 kB / 449.2 MB, free: 14.87 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/0.5285, allocations: 4 kB / 449.2 MB, free: 14.87 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/0.5286, allocations: 4 kB / 449.2 MB, free: 14.86 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.316e-05/0.5286, allocations: 8.766 kB / 449.2 MB, free: 14.86 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.515e-06/0.5286, allocations: 4 kB / 449.2 MB, free: 14.85 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.5299, allocations: 0.7919 MB / 450 MB, free: 13.94 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.5301, allocations: 108.8 kB / 450.1 MB, free: 13.81 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.353e-05/0.5301, allocations: 11.95 kB / 450.2 MB, free: 13.8 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.5305, allocations: 0 / 450.2 MB, free: 13.8 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.979e-05/0.5306, allocations: 31.97 kB / 450.2 MB, free: 13.77 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.559e-05/0.5306, allocations: 18.25 kB / 450.2 MB, free: 13.75 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.5308, allocations: 124.3 kB / 450.3 MB, free: 13.63 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5308, allocations: 0 / 450.3 MB, free: 13.63 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006821/0.5315, allocations: 60 kB / 450.4 MB, free: 13.57 MB / 347.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,damper1.s_rel,damper1.v_rel,damper2.s_rel,damper2.v_rel) * Number of discrete variables: 0 () * Number of discrete 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.001808/0.5333, allocations: 2.1 MB / 452.5 MB, free: 11.38 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.534, allocations: 228.7 kB / 452.7 MB, free: 11.16 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5341, allocations: 0 / 452.7 MB, free: 11.16 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000299/0.5344, allocations: 131.9 kB / 452.8 MB, free: 11.03 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007959/0.5352, allocations: 47.39 kB / 452.9 MB, free: 10.98 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.5376, allocations: 0.8557 MB / 453.7 MB, free: 10.06 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.5381, allocations: 0.78 MB / 454.5 MB, free: 9.254 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.5384, allocations: 91.41 kB / 454.6 MB, free: 9.164 MB / 347.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5384, allocations: 0 / 454.6 MB, free: 9.164 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.558/3.097, allocations: 4.431 MB / 459 MB, free: 4.758 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper_res.mat does not exist to compare? outputFormat=mat