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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 95 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 184.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003231/0.0003233, allocations: 6.781 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1154, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002329/0.1177, allocations: 1.875 MB / 353.1 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008714/0.1186, allocations: 0.5731 MB / 353.7 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.1188, allocations: 4 kB / 353.7 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.065e-05/0.1188, allocations: 27.77 kB / 353.7 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.119, allocations: 79.75 kB / 353.8 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.1192, allocations: 39.95 kB / 353.8 MB, free: 9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.1195, allocations: 199.5 kB / 354 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.1197, allocations: 85.23 kB / 354.1 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.1198, allocations: 79.7 kB / 354.2 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.12, allocations: 103.5 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.12, allocations: 12 kB / 354.3 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.063e-05/0.12, allocations: 8 kB / 354.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.1201, allocations: 35.84 kB / 354.3 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.537e-05/0.1201, allocations: 73.58 kB / 354.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.1203, allocations: 183.5 kB / 354.6 MB, free: 8.223 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1203, allocations: 0 / 354.6 MB, free: 8.223 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1204, allocations: 0 / 354.6 MB, free: 8.223 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1204, allocations: 0 / 354.6 MB, free: 8.223 MB / 286.1 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.0006917/0.1211, allocations: 494.9 kB / 355.1 MB, free: 7.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1211, allocations: 8.031 kB / 355.1 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.737e-05/0.1212, allocations: 62.5 kB / 355.1 MB, free: 7.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.65e-05/0.1212, allocations: 23.72 kB / 355.2 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.1215, allocations: 239.4 kB / 355.4 MB, free: 7.312 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.1216, allocations: 16.44 kB / 355.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/0.1216, allocations: 23.91 kB / 355.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.122, allocations: 195.2 kB / 355.6 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.122, allocations: 4 kB / 355.6 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.122, allocations: 11.94 kB / 355.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.122, allocations: 15.95 kB / 355.7 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.1223, allocations: 141.7 kB / 355.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009989/0.1233, allocations: 0.6386 MB / 356.4 MB, free: 6.219 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.1236, allocations: 178.5 kB / 356.6 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.1237, allocations: 0 / 356.6 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1237, allocations: 38.56 kB / 356.6 MB, free: 5.988 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.153e-06/0.1237, allocations: 0 / 356.6 MB, free: 5.988 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00184/0.1256, allocations: 1.088 MB / 357.7 MB, free: 4.809 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.1256, allocations: 55.41 kB / 357.8 MB, free: 4.742 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.1258, allocations: 175.1 kB / 358 MB, free: 4.562 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.1258, allocations: 33.7 kB / 358 MB, free: 4.523 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.231e-05/0.1259, allocations: 136.8 kB / 358.1 MB, free: 4.387 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.532e-05/0.126, allocations: 114.3 kB / 358.2 MB, free: 4.273 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.126, allocations: 8 kB / 358.2 MB, free: 4.266 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1262, allocations: 334.8 kB / 358.6 MB, free: 3.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.1263, allocations: 63.97 kB / 358.6 MB, free: 3.867 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.1265, allocations: 102.8 kB / 358.7 MB, free: 3.758 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.1267, allocations: 93.33 kB / 358.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1267, allocations: 0 / 358.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004853/0.1272, allocations: 299.9 kB / 359.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.1272, allocations: 4 kB / 359.1 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1272, allocations: 4.062 kB / 359.1 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/0.1274, allocations: 44.83 kB / 359.2 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.1276, allocations: 55.91 kB / 359.2 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.129, allocations: 1.577 MB / 360.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.1291, allocations: 12.02 kB / 360.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.1292, allocations: 12 kB / 360.8 MB, free: 1.523 MB / 286.1 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.0001205/0.1293, allocations: 141.8 kB / 361 MB, free: 1.375 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/0.1293, allocations: 15.81 kB / 361 MB, free: 1.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.364e-05/0.1294, allocations: 30.66 kB / 361 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1294, allocations: 7.953 kB / 361 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1294, allocations: 4 kB / 361 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.1294, allocations: 3.984 kB / 361 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.1304, allocations: 0.7823 MB / 361.8 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1305, allocations: 0 / 361.8 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.1307, allocations: 68 kB / 361.9 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.1308, allocations: 32.83 kB / 361.9 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.1309, allocations: 8 kB / 361.9 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.1319, allocations: 1.386 MB / 363.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.1319, allocations: 7.969 kB / 363.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006389/0.1325, allocations: 0.515 MB / 363.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.643e-05/0.1326, allocations: 100.9 kB / 363.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.1326, allocations: 7.938 kB / 363.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.1328, allocations: 12 kB / 363.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.1328, allocations: 27.92 kB / 364 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.1329, allocations: 12 kB / 364 MB, free: 14.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.384e-05/0.133, allocations: 135.5 kB / 364.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.133, allocations: 0 / 364.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.1333, allocations: 68 kB / 364.2 MB, free: 13.88 MB / 302.1 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.0009744/0.1343, allocations: 1.26 MB / 365.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005635/0.1349, allocations: 338.8 kB / 365.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1349, allocations: 4.125 kB / 365.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003231/0.1352, allocations: 246.7 kB / 366 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1356, allocations: 40.17 kB / 366 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.1381, allocations: 1.979 MB / 368 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1384, allocations: 0.7678 MB / 368.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.946e-05/0.1385, allocations: 26.27 kB / 368.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1387, allocations: 75.41 kB / 368.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1387, allocations: 0 / 368.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.1549, allocations: 4.673 MB / 373.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.1551, allocations: 202 kB / 373.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/1.927, allocations: 3.938 kB / 373.8 MB, free: 4.223 MB / 302.1 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