Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.001181, allocations: 180 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009177/0.0009177, allocations: 93.2 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002903/0.0002903, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2416, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09436/0.336, allocations: 78.92 MB / 480.5 MB, free: 1.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.3363, allocations: 68.66 kB / 480.6 MB, free: 1.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02278/0.3591, allocations: 7.783 MB / 488.3 MB, free: 9.699 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3592, allocations: 0 / 488.3 MB, free: 9.699 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.64e-05/0.3592, allocations: 11.98 kB / 488.4 MB, free: 9.688 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001474/0.3607, allocations: 0.6511 MB / 489 MB, free: 8.988 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.3607, allocations: 8.031 kB / 489 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001123/0.3609, allocations: 62.48 kB / 489.1 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.361, allocations: 31.62 kB / 489.1 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.3614, allocations: 270.5 kB / 489.4 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003568/0.3617, allocations: 131.9 kB / 489.5 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/0.3618, allocations: 28 kB / 489.5 MB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009273/0.3627, allocations: 411.9 kB / 489.9 MB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.3628, allocations: 7.906 kB / 489.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.3628, allocations: 8 kB / 489.9 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.3628, allocations: 8 kB / 490 MB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.3641, allocations: 460 kB / 490.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.3655, allocations: 0.9867 MB / 491.4 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.3665, allocations: 444.1 kB / 491.8 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.3666, allocations: 11.94 kB / 491.8 MB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.3666, allocations: 34.56 kB / 491.9 MB, free: 5.961 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 2.354e-06/0.3666, allocations: 0 / 491.9 MB, free: 5.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.004852/0.3715, allocations: 2.508 MB / 494.4 MB, free: 3.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.3716, allocations: 110.8 kB / 494.5 MB, free: 3.059 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.3718, allocations: 198.2 kB / 494.7 MB, free: 2.855 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.3718, allocations: 33.7 kB / 494.7 MB, free: 2.816 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.946e-05/0.3719, allocations: 140.7 kB / 494.8 MB, free: 2.676 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.372, allocations: 134 kB / 495 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.3721, allocations: 8 kB / 495 MB, free: 2.535 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3722, allocations: 342.8 kB / 495.3 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003039/0.3725, allocations: 112.8 kB / 495.4 MB, free: 2.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/0.3729, allocations: 173.4 kB / 495.6 MB, free: 1.891 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003484/0.3732, allocations: 128 kB / 495.7 MB, free: 1.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3733, allocations: 0 / 495.7 MB, free: 1.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007837/0.374, allocations: 376.5 kB / 496.1 MB, free: 1.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3741, allocations: 4 kB / 496.1 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3741, allocations: 0 / 496.1 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.3741, allocations: 11.88 kB / 496.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007125/0.3748, allocations: 171.9 kB / 496.3 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.3749, allocations: 4 kB / 496.3 MB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.3751, allocations: 27.98 kB / 496.3 MB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.3751, allocations: 15.98 kB / 496.3 MB, free: 1.164 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (47): * Single equations (assignments): 47 * 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.0001696/0.3753, allocations: 152.6 kB / 496.5 MB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.852e-05/0.3754, allocations: 27.72 kB / 496.5 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.224e-05/0.3755, allocations: 29.53 kB / 496.5 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3755, allocations: 4 kB / 496.5 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.3755, allocations: 3.984 kB / 496.5 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3755, allocations: 4 kB / 496.5 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.378, allocations: 1.406 MB / 497.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.378, allocations: 0 / 497.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000874/0.3789, allocations: 208 kB / 498.1 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.3789, allocations: 7.984 kB / 498.2 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.379, allocations: 8 kB / 498.2 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.379, allocations: 4 kB / 498.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.379, allocations: 7.938 kB / 498.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002092/0.3811, allocations: 1.137 MB / 499.3 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.3813, allocations: 124.8 kB / 499.4 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.3813, allocations: 15.94 kB / 499.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.3818, allocations: 64.16 kB / 499.5 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3819, allocations: 43.78 kB / 499.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.3819, allocations: 23.98 kB / 499.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000136/0.3821, allocations: 152.6 kB / 499.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3821, allocations: 0 / 499.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004648/0.3825, allocations: 84 kB / 499.8 MB, free: 13.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_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 (38): * Single equations (assignments): 38 * 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.002667/0.3852, allocations: 2.25 MB / 0.4903 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.3863, allocations: 402.5 kB / 0.4907 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.3863, allocations: 4 kB / 0.4907 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000702/0.387, allocations: 287.9 kB / 0.491 GB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006146/0.3877, allocations: 56.64 kB / 0.491 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007306/0.395, allocations: 3.477 MB / 0.4944 GB, free: 6.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.3954, allocations: 0.7763 MB / 0.4952 GB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000209/0.3956, allocations: 34.97 kB / 0.4952 GB, free: 5.996 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.3958, allocations: 103.4 kB / 0.4953 GB, free: 5.895 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.3959, allocations: 0 / 0.4953 GB, free: 5.895 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1923/0.5882, allocations: 6.304 MB / 0.5015 GB, free: 101.3 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.5884, allocations: 172.5 kB / 0.5016 GB, free: 101 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.126/2.714, allocations: 0 / 0.5016 GB, free: 101 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat