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.002594/0.002599, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 96.41 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004122/0.0004124, allocations: 12 kB / 327 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3413, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.002674/0.344, allocations: 1.911 MB / 376.5 MB, free: 43.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006027/0.3447, allocations: 244.3 kB / 376.8 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.3449, allocations: 8.531 kB / 376.8 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.73e-05/0.345, allocations: 32.06 kB / 376.8 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.3452, allocations: 101.1 kB / 376.9 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.3454, allocations: 37.41 kB / 376.9 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.3458, allocations: 204.5 kB / 377.1 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.346, allocations: 73.59 kB / 377.2 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.3462, allocations: 85.83 kB / 377.3 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.3464, allocations: 103.8 kB / 377.4 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.3464, allocations: 13.72 kB / 377.4 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.226e-05/0.3465, allocations: 10.91 kB / 377.4 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.73e-05/0.3465, allocations: 50.97 kB / 377.5 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.461e-05/0.3466, allocations: 75.33 kB / 377.6 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.3469, allocations: 210.4 kB / 377.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3469, allocations: 0 / 377.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3469, allocations: 1.188 kB / 377.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.347, allocations: 0 / 377.8 MB, free: 43.05 MB / 298.7 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.0008671/0.3478, allocations: 0.503 MB / 378.3 MB, free: 42.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.3479, allocations: 9.469 kB / 378.3 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.397e-05/0.348, allocations: 61.78 kB / 378.3 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.3481, allocations: 26.38 kB / 378.4 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.3484, allocations: 233.9 kB / 378.6 MB, free: 42.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.3484, allocations: 21.58 kB / 378.6 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.407e-05/0.3485, allocations: 28.56 kB / 378.6 MB, free: 42.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005557/0.3491, allocations: 247.5 kB / 378.9 MB, free: 42.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.3491, allocations: 5.922 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.3492, allocations: 10.09 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3492, allocations: 5.875 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000435/0.3496, allocations: 161.9 kB / 379.1 MB, free: 41.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.3511, allocations: 0.8019 MB / 379.9 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007265/0.3519, allocations: 283.3 kB / 380.1 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.3519, allocations: 4.344 kB / 380.1 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.3519, allocations: 39.94 kB / 380.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 3.015e-06/0.352, allocations: 0 / 380.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003676/0.3556, allocations: 1.95 MB / 382.1 MB, free: 39.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.3557, allocations: 116.5 kB / 382.2 MB, free: 39.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.356, allocations: 182.8 kB / 382.4 MB, free: 39.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.356, allocations: 35.7 kB / 382.5 MB, free: 39.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/0.3561, allocations: 197.4 kB / 382.6 MB, free: 38.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3563, allocations: 160 kB / 382.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.201e-05/0.3563, allocations: 10.16 kB / 382.8 MB, free: 38.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.225e-05/0.3564, allocations: 338.4 kB / 383.1 MB, free: 38.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.3566, allocations: 88.38 kB / 383.2 MB, free: 38.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.3569, allocations: 156.6 kB / 383.4 MB, free: 38.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.3573, allocations: 115.5 kB / 383.5 MB, free: 38.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3573, allocations: 5.188 kB / 383.5 MB, free: 38.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007936/0.3581, allocations: 322.9 kB / 383.8 MB, free: 37.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3581, allocations: 5.719 kB / 383.8 MB, free: 37.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3581, allocations: 2.594 kB / 383.8 MB, free: 37.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.63e-05/0.3582, allocations: 3.406 kB / 383.8 MB, free: 37.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.3588, allocations: 98.14 kB / 383.9 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.3589, allocations: 7.938 kB / 383.9 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.3591, allocations: 10.41 kB / 383.9 MB, free: 37.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.3592, allocations: 11.53 kB / 384 MB, free: 37.92 MB / 298.7 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.0001854/0.3594, allocations: 155.3 kB / 384.1 MB, free: 37.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.3595, allocations: 33.61 kB / 384.1 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.314e-05/0.3596, allocations: 35.34 kB / 384.2 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.3596, allocations: 4.156 kB / 384.2 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.3596, allocations: 1.156 kB / 384.2 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3596, allocations: 5.422 kB / 384.2 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.3615, allocations: 1.041 MB / 385.2 MB, free: 36.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.3616, allocations: 7.141 kB / 385.2 MB, free: 36.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.3623, allocations: 89.7 kB / 385.3 MB, free: 36.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.75e-05/0.3624, allocations: 5.156 kB / 385.3 MB, free: 36.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/0.3624, allocations: 14.16 kB / 385.3 MB, free: 36.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.437e-05/0.3625, allocations: 8.953 kB / 385.3 MB, free: 36.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.3625, allocations: 10.69 kB / 385.4 MB, free: 36.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.3637, allocations: 0.8499 MB / 386.2 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.3638, allocations: 102.5 kB / 386.3 MB, free: 35.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.091e-05/0.3639, allocations: 14.27 kB / 386.3 MB, free: 35.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.3643, allocations: 10.72 kB / 386.3 MB, free: 35.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.207e-05/0.3644, allocations: 39.05 kB / 386.4 MB, free: 35.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.483e-05/0.3644, allocations: 19.72 kB / 386.4 MB, free: 35.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.3646, allocations: 130.4 kB / 386.5 MB, free: 35.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3646, allocations: 0 / 386.5 MB, free: 35.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006658/0.3653, allocations: 72 kB / 386.6 MB, free: 35.79 MB / 298.7 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.001521/0.3668, allocations: 2.168 MB / 388.8 MB, free: 33.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006734/0.3675, allocations: 258.1 kB / 389 MB, free: 33.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.3675, allocations: 4 kB / 389 MB, free: 33.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002757/0.3678, allocations: 144.5 kB / 389.2 MB, free: 33.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007829/0.3686, allocations: 54.78 kB / 389.2 MB, free: 33.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003928/0.3726, allocations: 2.939 MB / 392.1 MB, free: 30.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.3729, allocations: 0.7726 MB / 392.9 MB, free: 29.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.3731, allocations: 99.41 kB / 393 MB, free: 29.44 MB / 298.7 MB Notification: Performance of SimCode: time 1.503e-06/0.3731, allocations: 0 / 393 MB, free: 29.44 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.661/3.034, allocations: 4.541 MB / 397.6 MB, free: 24.91 MB / 298.7 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