Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001473/0.001473, allocations: 188.3 kB / 16.41 MB, free: 5.723 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.025/2.025, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001118/0.001118, allocations: 93.78 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000527/0.0005271, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3619, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1314/0.4934, allocations: 77.58 MB / 452.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003559/0.4938, allocations: 71.97 kB / 452.3 MB, free: 3.102 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01744/0.5113, allocations: 3.8 MB / 456.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5113, allocations: 0 / 456.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.5114, allocations: 4 kB / 456.1 MB, free: 15.29 MB / 346.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.000895/0.5123, allocations: 494.9 kB / 456.6 MB, free: 14.76 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5123, allocations: 12.03 kB / 456.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.08e-05/0.5124, allocations: 54.55 kB / 456.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.5125, allocations: 23.72 kB / 456.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.5129, allocations: 227.4 kB / 456.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.5129, allocations: 20.39 kB / 456.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.456e-05/0.513, allocations: 23.91 kB / 456.9 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005549/0.5136, allocations: 209.8 kB / 457.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.5136, allocations: 0 / 457.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.5136, allocations: 12 kB / 457.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.669e-06/0.5137, allocations: 4 kB / 457.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.5141, allocations: 129.9 kB / 457.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.5156, allocations: 0.7093 MB / 458 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004157/0.5161, allocations: 154.4 kB / 458.1 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.5161, allocations: 4 kB / 458.1 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.5162, allocations: 34.56 kB / 458.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 3.236e-06/0.5162, allocations: 0 / 458.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.002474/0.5187, allocations: 0.8957 MB / 459.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.5188, allocations: 55.34 kB / 459.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.519, allocations: 154.9 kB / 459.3 MB, free: 11.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.519, allocations: 33.7 kB / 459.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.5192, allocations: 202.7 kB / 459.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.541e-05/0.5193, allocations: 86.75 kB / 459.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.5193, allocations: 4 kB / 459.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.5194, allocations: 326.8 kB / 459.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.5197, allocations: 55.98 kB / 460 MB, free: 11.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.5199, allocations: 101.7 kB / 460.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.5202, allocations: 76.8 kB / 460.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5202, allocations: 0 / 460.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007664/0.521, allocations: 246.1 kB / 460.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.521, allocations: 7.984 kB / 460.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.521, allocations: 0 / 460.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.5213, allocations: 40.78 kB / 460.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.5217, allocations: 47.97 kB / 460.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.5234, allocations: 1.394 MB / 461.9 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.5236, allocations: 11.97 kB / 461.9 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.5237, allocations: 12 kB / 461.9 MB, free: 9.016 MB / 346.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.0001919/0.5239, allocations: 133.8 kB / 462 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.524, allocations: 23.8 kB / 462 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.487e-05/0.524, allocations: 25.88 kB / 462.1 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.5241, allocations: 0 / 462.1 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5241, allocations: 3.953 kB / 462.1 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.5241, allocations: 4 kB / 462.1 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.5255, allocations: 0.6642 MB / 462.7 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.5256, allocations: 0 / 462.7 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004136/0.526, allocations: 39.98 kB / 462.8 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002012/0.5262, allocations: 44.83 kB / 462.8 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.5263, allocations: 8 kB / 462.8 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001572/0.5278, allocations: 1.386 MB / 464.2 MB, free: 6.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5279, allocations: 8.25 kB / 464.2 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.5289, allocations: 429.7 kB / 464.7 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.955e-05/0.529, allocations: 101 kB / 464.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/0.5291, allocations: 8 kB / 464.8 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.5293, allocations: 8 kB / 464.8 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.496e-05/0.5293, allocations: 15.97 kB / 464.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.5294, allocations: 12 kB / 464.8 MB, free: 5.844 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001568/0.5295, allocations: 124.8 kB / 464.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5296, allocations: 0 / 464.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004739/0.53, allocations: 60 kB / 465 MB, free: 5.664 MB / 346.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.001367/0.5314, allocations: 1.114 MB / 466.1 MB, free: 4.508 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008462/0.5323, allocations: 294.9 kB / 466.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5323, allocations: 0 / 466.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000504/0.5328, allocations: 218.5 kB / 466.6 MB, free: 3.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.5334, allocations: 36.3 kB / 466.6 MB, free: 3.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003869/0.5372, allocations: 2.153 MB / 468.8 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.5377, allocations: 0.7523 MB / 469.5 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.5379, allocations: 63.42 kB / 469.6 MB, free: 0.875 MB / 346.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5379, allocations: 7.938 kB / 469.6 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.753/3.29, allocations: 4.314 MB / 473.9 MB, free: 12.55 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat