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.0009863/0.0009865, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001176/0.001176, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.402/1.402, allocations: 223.3 MB / 241.2 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002705/0.0002708, allocations: 9.562 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 50.41 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002493/0.107, allocations: 1.966 MB / 353.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1082, allocations: 0.5534 MB / 353.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.1084, allocations: 7.938 kB / 353.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.1086, allocations: 23.78 kB / 353.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.1088, allocations: 71.45 kB / 354 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.109, allocations: 35.97 kB / 354 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.1093, allocations: 250.8 kB / 354.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.1095, allocations: 85.23 kB / 354.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.1097, allocations: 91.58 kB / 354.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.1098, allocations: 95.55 kB / 354.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.009e-05/0.1098, allocations: 16 kB / 354.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.045e-05/0.1099, allocations: 12 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.7e-05/0.1099, allocations: 39.84 kB / 354.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.794e-05/0.11, allocations: 65.58 kB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.1102, allocations: 183.7 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1102, allocations: 4 kB / 354.8 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1102, allocations: 0 / 354.8 MB, free: 420 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1102, allocations: 0 / 354.8 MB, free: 420 kB / 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.0006022/0.1108, allocations: 498.9 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1108, allocations: 8.031 kB / 355.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.734e-05/0.1109, allocations: 62.5 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.111, allocations: 23.72 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.1112, allocations: 232.3 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1112, allocations: 16.44 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.1113, allocations: 27.91 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.1116, allocations: 195.3 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1116, allocations: 3.938 kB / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.1117, allocations: 12 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1117, allocations: 7.953 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.1119, allocations: 141.7 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.1128, allocations: 0.6347 MB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.1131, allocations: 182.6 kB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.1132, allocations: 107 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.1133, allocations: 4 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.1133, allocations: 34.97 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.1133, allocations: 3.938 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001714/0.115, allocations: 1.088 MB / 358.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.1151, allocations: 55.41 kB / 358.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.1152, allocations: 180 kB / 358.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.1152, allocations: 33.64 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.1153, allocations: 136.7 kB / 358.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.492e-05/0.1154, allocations: 118.3 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/0.1154, allocations: 4 kB / 358.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.967e-05/0.1155, allocations: 330.8 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1157, allocations: 75.97 kB / 359 MB, free: 11.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.1158, allocations: 102.8 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.116, allocations: 85.39 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.116, allocations: 0 / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004414/0.1164, allocations: 299.9 kB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1165, allocations: 10.66 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1165, allocations: 0 / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.1166, allocations: 40.83 kB / 359.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.1169, allocations: 63.91 kB / 359.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.1182, allocations: 1.565 MB / 361.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.1183, allocations: 20.02 kB / 361.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.1183, allocations: 4 kB / 361.2 MB, free: 9.617 MB / 302.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.0001274/0.1185, allocations: 141.8 kB / 361.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.361e-05/0.1185, allocations: 19.81 kB / 361.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.1186, allocations: 30.61 kB / 361.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1186, allocations: 0 / 361.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.1186, allocations: 16.03 kB / 361.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1186, allocations: 0 / 361.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.1196, allocations: 0.7784 MB / 362.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1197, allocations: 4 kB / 362.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.1199, allocations: 55.91 kB / 362.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/0.12, allocations: 36.83 kB / 362.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.1201, allocations: 8 kB / 362.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.1211, allocations: 1.378 MB / 363.6 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1211, allocations: 3.938 kB / 363.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000669/0.1218, allocations: 498.3 kB / 364.1 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.1218, allocations: 92.83 kB / 364.2 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.1219, allocations: 8 kB / 364.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.122, allocations: 12.03 kB / 364.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.1221, allocations: 28.14 kB / 364.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.1221, allocations: 8 kB / 364.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.1222, allocations: 131.5 kB / 364.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1222, allocations: 0 / 364.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.1226, allocations: 68 kB / 364.4 MB, free: 6.055 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.0009004/0.1235, allocations: 1.032 MB / 365.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.1241, allocations: 338.8 kB / 365.8 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1241, allocations: 4.125 kB / 365.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.1245, allocations: 254.7 kB / 366.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.1249, allocations: 32.17 kB / 366.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.1273, allocations: 1.691 MB / 367.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.1276, allocations: 0.7525 MB / 368.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.022e-05/0.1277, allocations: 26.27 kB / 368.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.1278, allocations: 75.41 kB / 368.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1278, allocations: 0 / 368.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1836/0.3114, allocations: 4.678 MB / 373.3 MB, free: 23.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/0.3116, allocations: 202.9 kB / 373.5 MB, free: 23.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.085, allocations: 3.625 kB / 373.5 MB, free: 23.43 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