Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.001732/0.001732, allocations: 176.8 kB / 17.06 MB, free: 5.094 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.494/1.494, allocations: 223.2 MB / 241 MB, free: 10.18 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.001015/0.001015, allocations: 90.58 kB / 292.1 MB, free: 10.71 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3682/0.3682, allocations: 44.22 MB / 387.5 MB, free: 38.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003465, allocations: 12 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4103/0.4106, allocations: 61.89 MB / 0.5096 GB, free: 37.65 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.5366, allocations: 87.48 MB / 0.5951 GB, free: 7.629 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.5369, allocations: 79.86 kB / 0.5951 GB, free: 7.555 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006841/0.5437, allocations: 2.569 MB / 0.5976 GB, free: 4.977 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.5437, allocations: 3.938 kB / 0.5977 GB, free: 4.973 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.5438, allocations: 7.922 kB / 0.5977 GB, free: 4.965 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005248/0.5443, allocations: 414.9 kB / 0.5981 GB, free: 4.512 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.778e-05/0.5444, allocations: 16.03 kB / 0.5981 GB, free: 4.496 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.125e-05/0.5445, allocations: 46.55 kB / 0.5981 GB, free: 4.441 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.5445, allocations: 15.81 kB / 0.5981 GB, free: 4.426 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.5447, allocations: 198.8 kB / 0.5983 GB, free: 4.191 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.5448, allocations: 11.95 kB / 0.5983 GB, free: 4.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.5448, allocations: 16 kB / 0.5983 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.5451, allocations: 132.5 kB / 0.5985 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.5451, allocations: 4 kB / 0.5985 GB, free: 4.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.5452, allocations: 8 kB / 0.5985 GB, free: 4.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.5452, allocations: 4 kB / 0.5985 GB, free: 4.016 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.5454, allocations: 83.89 kB / 0.5986 GB, free: 3.934 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007822/0.5462, allocations: 476.2 kB / 0.599 GB, free: 3.418 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.5465, allocations: 118.5 kB / 0.5991 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.5465, allocations: 4 kB / 0.5991 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.5465, allocations: 34.55 kB / 0.5992 GB, free: 3.246 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.773e-06/0.5465, allocations: 0 / 0.5992 GB, free: 3.246 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001703/0.5482, allocations: 0.8218 MB / 0.6 GB, free: 2.336 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.5483, allocations: 55.34 kB / 0.6 GB, free: 2.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.5485, allocations: 131.7 kB / 0.6002 GB, free: 2.133 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.5485, allocations: 29.7 kB / 0.6002 GB, free: 2.098 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.277e-05/0.5486, allocations: 108.3 kB / 0.6003 GB, free: 1.988 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.69e-05/0.5487, allocations: 67 kB / 0.6003 GB, free: 1.922 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.158e-05/0.5487, allocations: 8 kB / 0.6004 GB, free: 1.914 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.5489, allocations: 318.8 kB / 0.6007 GB, free: 1.594 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.549, allocations: 56.34 kB / 0.6007 GB, free: 1.535 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.5492, allocations: 73.66 kB / 0.6008 GB, free: 1.453 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.5493, allocations: 55.94 kB / 0.6008 GB, free: 1.398 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.5493, allocations: 0 / 0.6008 GB, free: 1.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000424/0.5497, allocations: 218.1 kB / 0.601 GB, free: 1.176 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.5498, allocations: 4 kB / 0.6011 GB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.5498, allocations: 0 / 0.6011 GB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.55, allocations: 40.84 kB / 0.6011 GB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.5502, allocations: 39.91 kB / 0.6011 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.5521, allocations: 1.573 MB / 0.6027 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.189e-05/0.5522, allocations: 8.094 kB / 0.6027 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.5522, allocations: 8 kB / 0.6027 GB, free: 15.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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.0001469/0.5524, allocations: 129.8 kB / 0.6028 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.5524, allocations: 19.8 kB / 0.6028 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.5525, allocations: 13.19 kB / 0.6028 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5525, allocations: 4 kB / 0.6028 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.5525, allocations: 3.953 kB / 0.6028 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.5525, allocations: 0 / 0.6028 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.5533, allocations: 0.5661 MB / 0.6034 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5533, allocations: 0 / 0.6034 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.5534, allocations: 40 kB / 0.6034 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.976e-05/0.5536, allocations: 28.84 kB / 0.6035 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.5536, allocations: 4 kB / 0.6035 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.5546, allocations: 1.38 MB / 0.6048 GB, free: 12.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.5547, allocations: 0 / 0.6048 GB, free: 12.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.5552, allocations: 373.2 kB / 0.6052 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.56e-05/0.5552, allocations: 85.05 kB / 0.6052 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/0.5553, allocations: 7.953 kB / 0.6053 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.291e-05/0.5554, allocations: 4 kB / 0.6053 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.28e-05/0.5554, allocations: 11.98 kB / 0.6053 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.5554, allocations: 15.98 kB / 0.6053 GB, free: 12.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.157e-05/0.5555, allocations: 107.2 kB / 0.6054 GB, free: 12.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5555, allocations: 4.062 kB / 0.6054 GB, free: 12.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.5559, allocations: 44 kB / 0.6054 GB, free: 12.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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.0008517/0.5567, allocations: 0.9599 MB / 0.6064 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004844/0.5572, allocations: 258.5 kB / 0.6066 GB, free: 11.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5572, allocations: 128 / 0.6066 GB, free: 11.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002443/0.5575, allocations: 198.6 kB / 0.6068 GB, free: 10.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.5578, allocations: 19.94 kB / 0.6068 GB, free: 10.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.5596, allocations: 1.538 MB / 0.6083 GB, free: 9.199 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.5599, allocations: 0.7285 MB / 0.609 GB, free: 8.445 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.426e-05/0.5599, allocations: 13.36 kB / 0.6091 GB, free: 8.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.56, allocations: 47.42 kB / 0.6091 GB, free: 8.387 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.56, allocations: 0 / 0.6091 GB, free: 8.387 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01537/0.5754, allocations: 3.026 MB / 0.6121 GB, free: 5.543 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001903/0.5756, allocations: 209.8 kB / 0.6123 GB, free: 5.301 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.261, allocations: 0 / 0.6123 GB, free: 5.301 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat