Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",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.0009738/0.0009739, allocations: 87.31 kB / 16.31 MB, free: 5.676 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.001204/0.001204, allocations: 182.2 kB / 17.21 MB, free: 5.598 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.354/1.354, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004614, allocations: 8 kB / 300.9 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1179, allocations: 50.41 MB / 351.3 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.002338/0.1203, allocations: 1.876 MB / 353.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004668/0.1208, allocations: 187.3 kB / 353.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.917e-05/0.1209, allocations: 8 kB / 353.4 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.66e-05/0.121, allocations: 23.83 kB / 353.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.1211, allocations: 51.53 kB / 353.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00015/0.1213, allocations: 39.97 kB / 353.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000219/0.1215, allocations: 219 kB / 353.7 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1217, allocations: 85.78 kB / 353.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.23e-05/0.1218, allocations: 75.72 kB / 353.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.122, allocations: 83.62 kB / 354 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.122, allocations: 16 kB / 354 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.933e-05/0.122, allocations: 12 kB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.421e-05/0.1221, allocations: 39.83 kB / 354 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.625e-05/0.1221, allocations: 61.64 kB / 354.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.1223, allocations: 191.6 kB / 354.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1223, allocations: 0 / 354.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1223, allocations: 0 / 354.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1223, allocations: 0 / 354.3 MB, free: 0.9648 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006704/0.123, allocations: 487.1 kB / 354.7 MB, free: 452 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1231, allocations: 8.031 kB / 354.8 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.552e-05/0.1231, allocations: 58.53 kB / 354.8 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.396e-05/0.1232, allocations: 23.77 kB / 354.8 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002097/0.1234, allocations: 218.7 kB / 355.1 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1234, allocations: 16.56 kB / 355.1 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.1235, allocations: 24 kB / 355.1 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.1238, allocations: 228.3 kB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.1238, allocations: 4 kB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.1239, allocations: 8 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.1239, allocations: 11.95 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000223/0.1241, allocations: 127.9 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.1252, allocations: 0.875 MB / 356.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.1254, allocations: 155.9 kB / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.476e-05/0.1255, allocations: 66.69 kB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.1255, allocations: 8 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1256, allocations: 34.56 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.1256, allocations: 0 / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003575/0.126, allocations: 165.3 kB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/0.126, allocations: 110.8 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.1262, allocations: 186.6 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.1263, allocations: 33.64 kB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1264, allocations: 167.7 kB / 357.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.991e-05/0.1264, allocations: 59.11 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/0.1264, allocations: 4 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1266, allocations: 338.8 kB / 357.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.1267, allocations: 44.55 kB / 357.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.1269, allocations: 151.6 kB / 357.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.127, allocations: 75.92 kB / 357.9 MB, free: 13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.127, allocations: 0 / 357.9 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003446/0.1273, allocations: 241.8 kB / 358.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1274, allocations: 10.34 kB / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1274, allocations: 7.984 kB / 358.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1274, allocations: 4 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.1276, allocations: 55.92 kB / 358.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1276, allocations: 7.938 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.1277, allocations: 36.12 kB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.1278, allocations: 16 kB / 358.3 MB, free: 12.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.1279, allocations: 149.7 kB / 358.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.557e-05/0.128, allocations: 15.81 kB / 358.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.512e-05/0.128, allocations: 21.41 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.128, allocations: 4 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1281, allocations: 0 / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.1281, allocations: 3.984 kB / 358.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.1286, allocations: 420.8 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1286, allocations: 4 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.1288, allocations: 39.92 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1288, allocations: 4 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1288, allocations: 11.92 kB / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1288, allocations: 0 / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1288, allocations: 8.031 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.1292, allocations: 377.5 kB / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.1293, allocations: 92.86 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.1293, allocations: 8 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.1294, allocations: 48 / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.642e-05/0.1295, allocations: 23.94 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.1295, allocations: 7.984 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1296, allocations: 140.3 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1296, allocations: 0 / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003529/0.13, allocations: 51.84 kB / 359.6 MB, free: 11.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * 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 (17): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006688/0.1307, allocations: 0.9048 MB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002473/0.1309, allocations: 148.4 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1309, allocations: 4.125 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.956e-05/0.131, allocations: 51.92 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.1315, allocations: 30.78 kB / 360.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.1333, allocations: 1.43 MB / 362.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.1336, allocations: 0.7398 MB / 362.9 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.1337, allocations: 21.95 kB / 363 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.803e-05/0.1338, allocations: 55.41 kB / 363 MB, free: 7.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1338, allocations: 3.938 kB / 363 MB, free: 7.602 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01338/0.1472, allocations: 3.332 MB / 366.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.1475, allocations: 184.8 kB / 366.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/1.898, allocations: 4.062 kB / 366.5 MB, free: 4.172 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat does not exist to compare? outputFormat=mat