Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",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.001511/0.001511, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.408/1.408, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0009691/0.0009693, allocations: 97.12 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003213, allocations: 12 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2659, allocations: 50.41 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09954/0.3655, allocations: 78.41 MB / 480 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3658, allocations: 71.95 kB / 480.1 MB, free: 2.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01128/0.3771, allocations: 4.159 MB / 484.2 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3771, allocations: 0 / 484.2 MB, free: 13.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.3772, allocations: 4 kB / 484.2 MB, free: 13.85 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007935/0.378, allocations: 0.4951 MB / 484.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.378, allocations: 8.031 kB / 484.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.59e-05/0.3781, allocations: 58.53 kB / 484.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.458e-05/0.3782, allocations: 31.62 kB / 484.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.3786, allocations: 229 kB / 485 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.3786, allocations: 16.44 kB / 485.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.555e-05/0.3787, allocations: 24 kB / 485.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.3791, allocations: 187.3 kB / 485.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3791, allocations: 8 kB / 485.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.3791, allocations: 7.953 kB / 485.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3791, allocations: 8 kB / 485.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/0.3794, allocations: 141.7 kB / 485.4 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.3805, allocations: 0.6307 MB / 486.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.3808, allocations: 187.3 kB / 486.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.3808, allocations: 4 kB / 486.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.3809, allocations: 30.56 kB / 486.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.144e-06/0.3809, allocations: 0 / 486.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.002043/0.3829, allocations: 1.081 MB / 487.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.383, allocations: 55.41 kB / 487.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.3832, allocations: 163.1 kB / 487.6 MB, free: 10.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.3832, allocations: 33.7 kB / 487.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.336e-05/0.3833, allocations: 136.7 kB / 487.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.029e-05/0.3834, allocations: 110.3 kB / 487.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.3834, allocations: 15.94 kB / 487.9 MB, free: 9.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3835, allocations: 330.8 kB / 488.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.3837, allocations: 75.91 kB / 488.2 MB, free: 9.512 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.3839, allocations: 102.8 kB / 488.3 MB, free: 9.402 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.3841, allocations: 89.39 kB / 488.4 MB, free: 9.316 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3841, allocations: 0 / 488.4 MB, free: 9.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005033/0.3846, allocations: 299.9 kB / 488.7 MB, free: 9.016 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3847, allocations: 4 kB / 488.7 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3847, allocations: 3.984 kB / 488.7 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.3849, allocations: 40.84 kB / 488.8 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.3851, allocations: 55.91 kB / 488.8 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/0.3867, allocations: 1.592 MB / 490.4 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.3868, allocations: 8.062 kB / 490.4 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.3869, allocations: 12 kB / 490.4 MB, free: 7.164 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.387, allocations: 144.7 kB / 490.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.984e-05/0.3871, allocations: 23.72 kB / 490.6 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.357e-05/0.3871, allocations: 30.64 kB / 490.6 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.3872, allocations: 7.953 kB / 490.6 MB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3872, allocations: 0 / 490.6 MB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.3872, allocations: 3.984 kB / 490.7 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.3884, allocations: 0.7824 MB / 491.4 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3884, allocations: 0 / 491.4 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.3887, allocations: 59.91 kB / 491.5 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001195/0.3888, allocations: 36.83 kB / 491.5 MB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.3889, allocations: 11.98 kB / 491.5 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.39, allocations: 1.39 MB / 492.9 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.39, allocations: 0 / 492.9 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007192/0.3908, allocations: 0.5192 MB / 493.4 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/0.3909, allocations: 92.92 kB / 493.5 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.3909, allocations: 8.031 kB / 493.5 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.391, allocations: 8 kB / 493.6 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.331e-05/0.3911, allocations: 27.92 kB / 493.6 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.3911, allocations: 8 kB / 493.6 MB, free: 3.727 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001409/0.3913, allocations: 135.5 kB / 493.7 MB, free: 3.594 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3913, allocations: 0 / 493.7 MB, free: 3.594 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000439/0.3917, allocations: 68 kB / 493.8 MB, free: 3.527 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.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 (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/0.3928, allocations: 1.26 MB / 495 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006571/0.3935, allocations: 354.7 kB / 495.4 MB, free: 1.859 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3935, allocations: 0 / 495.4 MB, free: 1.859 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003575/0.3939, allocations: 243.3 kB / 495.6 MB, free: 1.609 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.3943, allocations: 44.41 kB / 495.7 MB, free: 1.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.3972, allocations: 1.979 MB / 497.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.3976, allocations: 0.76 MB / 498.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.3977, allocations: 26.28 kB / 498.4 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.3978, allocations: 71.41 kB / 498.5 MB, free: 14.64 MB / 378.7 MB Notification: Performance of SimCode: time 8.92e-07/0.3978, allocations: 4 kB / 498.5 MB, free: 14.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.4161, allocations: 4.689 MB / 0.4914 GB, free: 10.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/0.4164, allocations: 190.9 kB / 0.4916 GB, free: 9.863 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.232, allocations: 0 / 0.4916 GB, free: 9.863 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat