Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.2 MB / 245 MB, free: 7.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009083/0.0009081, allocations: 98.52 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001999/0.0002, allocations: 8 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1987, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08998/0.2888, allocations: 79.23 MB / 488.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.289, allocations: 69.94 kB / 488.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01074/0.2998, allocations: 4.002 MB / 492.8 MB, free: 7.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2998, allocations: 224 / 492.8 MB, free: 7.309 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.2999, allocations: 4 kB / 492.8 MB, free: 7.305 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007021/0.3006, allocations: 494.8 kB / 493.3 MB, free: 6.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.3006, allocations: 8.031 kB / 493.3 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.82e-05/0.3007, allocations: 62.53 kB / 493.4 MB, free: 6.695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.3009, allocations: 31.72 kB / 493.4 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.3012, allocations: 227.4 kB / 493.6 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.3012, allocations: 16.39 kB / 493.6 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.3013, allocations: 27.89 kB / 493.6 MB, free: 6.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.3017, allocations: 209.8 kB / 493.9 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.3017, allocations: 8 kB / 493.9 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.3017, allocations: 8 kB / 493.9 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3018, allocations: 4 kB / 493.9 MB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002549/0.302, allocations: 125.7 kB / 494 MB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.3031, allocations: 0.7093 MB / 494.7 MB, free: 5.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.3034, allocations: 154.5 kB / 494.9 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.3034, allocations: 4 kB / 494.9 MB, free: 5.066 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.3034, allocations: 30.56 kB / 494.9 MB, free: 5.027 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.714e-06/0.3034, allocations: 0 / 494.9 MB, free: 5.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001567/0.305, allocations: 0.8959 MB / 495.8 MB, free: 4.047 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.3051, allocations: 55.41 kB / 495.8 MB, free: 3.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.3052, allocations: 150.4 kB / 496 MB, free: 3.824 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3052, allocations: 33.7 kB / 496 MB, free: 3.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/0.3053, allocations: 140.2 kB / 496.2 MB, free: 3.641 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.3054, allocations: 90.69 kB / 496.2 MB, free: 3.551 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.3054, allocations: 4 kB / 496.2 MB, free: 3.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3055, allocations: 330.8 kB / 496.6 MB, free: 3.215 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.3057, allocations: 59.97 kB / 496.6 MB, free: 3.156 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.3058, allocations: 113.2 kB / 496.7 MB, free: 3.031 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.306, allocations: 67.94 kB / 496.8 MB, free: 2.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.306, allocations: 4 kB / 496.8 MB, free: 2.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004151/0.3064, allocations: 250 kB / 497.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3064, allocations: 8 kB / 497.1 MB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3064, allocations: 0 / 497.1 MB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001632/0.3066, allocations: 36.83 kB / 497.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.3068, allocations: 55.84 kB / 497.2 MB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.3079, allocations: 1.398 MB / 498.6 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.308, allocations: 8 kB / 498.6 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.3081, allocations: 20.06 kB / 498.6 MB, free: 1.047 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001301/0.3082, allocations: 129.8 kB / 498.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.3083, allocations: 15.81 kB / 498.7 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.617e-05/0.3083, allocations: 29.86 kB / 498.7 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3083, allocations: 4 kB / 498.8 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3083, allocations: 3.953 kB / 498.8 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3083, allocations: 0 / 498.8 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008654/0.3092, allocations: 0.6568 MB / 499.4 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3092, allocations: 0 / 499.4 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.3095, allocations: 48.03 kB / 499.5 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.3096, allocations: 36.83 kB / 499.5 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.3096, allocations: 8 kB / 499.5 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.3108, allocations: 1.39 MB / 0.4892 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3108, allocations: 0 / 0.4892 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.3114, allocations: 437.5 kB / 0.4896 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-05/0.3115, allocations: 92.83 kB / 0.4897 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.3115, allocations: 8 kB / 0.4897 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.3116, allocations: 12.03 kB / 0.4897 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.3117, allocations: 19.92 kB / 0.4897 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.3117, allocations: 8 kB / 0.4897 GB, free: 13.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.488e-05/0.3118, allocations: 127.2 kB / 0.4898 GB, free: 13.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3118, allocations: 0 / 0.4898 GB, free: 13.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003465/0.3122, allocations: 63.94 kB / 0.4899 GB, free: 13.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0008647/0.3131, allocations: 1.098 MB / 0.491 GB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005156/0.3136, allocations: 306.4 kB / 0.4913 GB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3136, allocations: 0 / 0.4913 GB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.3139, allocations: 222.9 kB / 0.4915 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3143, allocations: 30.17 kB / 0.4915 GB, free: 11.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.3167, allocations: 2.131 MB / 0.4936 GB, free: 9.789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.317, allocations: 0.7524 MB / 0.4943 GB, free: 9.008 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.347e-05/0.3171, allocations: 17.95 kB / 0.4943 GB, free: 8.992 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.818e-05/0.3172, allocations: 67.41 kB / 0.4944 GB, free: 8.926 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3172, allocations: 3.938 kB / 0.4944 GB, free: 8.922 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01624/0.3334, allocations: 4.219 MB / 0.4985 GB, free: 4.879 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/0.3336, allocations: 199.8 kB / 0.4987 GB, free: 4.641 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.006, allocations: 0 / 0.4987 GB, free: 4.641 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat