Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 60.06 kB / 306.3 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1015, allocations: 50.54 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003611/0.1051, allocations: 2.309 MB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004931/0.1056, allocations: 199.2 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.1058, allocations: 4 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.1059, allocations: 27.77 kB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.1061, allocations: 47.59 kB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001709/0.1063, allocations: 51.89 kB / 359.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.1065, allocations: 226.9 kB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.1067, allocations: 95.23 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.1069, allocations: 79.72 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.107, allocations: 103.5 kB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.672e-05/0.1071, allocations: 16 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.958e-05/0.1071, allocations: 16 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.1072, allocations: 47.83 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.1073, allocations: 103.5 kB / 360.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.1075, allocations: 251.3 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1075, allocations: 0 / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1075, allocations: 0 / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1075, allocations: 0 / 360.4 MB, free: 10.61 MB / 302.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.0008128/0.1084, allocations: 0.4977 MB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1084, allocations: 8.031 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.326e-05/0.1085, allocations: 70.64 kB / 361 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.944e-05/0.1085, allocations: 24.66 kB / 361 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002122/0.1088, allocations: 219.9 kB / 361.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1088, allocations: 20.94 kB / 361.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.796e-05/0.1088, allocations: 24.38 kB / 361.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.1092, allocations: 232.8 kB / 361.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1092, allocations: 3.938 kB / 361.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.1093, allocations: 12 kB / 361.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1093, allocations: 4 kB / 361.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.1095, allocations: 131.9 kB / 361.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.1108, allocations: 0.8596 MB / 362.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.111, allocations: 163.7 kB / 362.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.625e-05/0.1111, allocations: 62.5 kB / 362.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.1111, allocations: 8 kB / 362.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.1111, allocations: 34.5 kB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1111, allocations: 3.938 kB / 362.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003438/0.1115, allocations: 165.7 kB / 363 MB, free: 7.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.1115, allocations: 110.8 kB / 363.1 MB, free: 7.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.1117, allocations: 203.2 kB / 363.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.1117, allocations: 33.7 kB / 363.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.1118, allocations: 159.8 kB / 363.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.1119, allocations: 63.09 kB / 363.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.502e-05/0.112, allocations: 53.89 kB / 363.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1122, allocations: 330.8 kB / 363.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.1123, allocations: 48.55 kB / 363.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.1125, allocations: 155.6 kB / 364.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.1127, allocations: 229.4 kB / 364.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1127, allocations: 0 / 364.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003436/0.1131, allocations: 249.9 kB / 364.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.1131, allocations: 4 kB / 364.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1131, allocations: 4.188 kB / 364.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1131, allocations: 8 kB / 364.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.1133, allocations: 55.91 kB / 364.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.1133, allocations: 11.94 kB / 364.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.1135, allocations: 31.67 kB / 364.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1135, allocations: 16.34 kB / 364.7 MB, free: 5.965 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.1136, allocations: 142.8 kB / 364.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-05/0.1137, allocations: 27.73 kB / 364.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.1138, allocations: 21.41 kB / 364.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1138, allocations: 0 / 364.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1138, allocations: 8 kB / 364.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1138, allocations: 0 / 364.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006236/0.1144, allocations: 424.9 kB / 365.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1144, allocations: 0 / 365.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.1146, allocations: 39.92 kB / 365.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1146, allocations: 0 / 365.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1147, allocations: 8 kB / 365.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1147, allocations: 4 kB / 365.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1147, allocations: 0 / 365.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003597/0.115, allocations: 389 kB / 365.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.84e-05/0.1151, allocations: 96.86 kB / 365.8 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.1151, allocations: 7.938 kB / 365.8 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.1153, allocations: 4 kB / 365.8 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.02e-05/0.1153, allocations: 15.97 kB / 365.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.1153, allocations: 12 kB / 365.9 MB, free: 4.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.1154, allocations: 135.2 kB / 366 MB, free: 4.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1154, allocations: 0 / 366 MB, free: 4.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.1158, allocations: 55.84 kB / 366 MB, free: 4.484 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006659/0.1165, allocations: 0.9114 MB / 367 MB, free: 3.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002351/0.1167, allocations: 136.6 kB / 367.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1167, allocations: 0 / 367.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.825e-05/0.1168, allocations: 51.98 kB / 367.1 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.1173, allocations: 35.86 kB / 367.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.12, allocations: 2.611 MB / 369.8 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1566/0.2767, allocations: 0.7326 MB / 370.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.2769, allocations: 19.55 kB / 370.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.211e-05/0.277, allocations: 56.44 kB / 370.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of SimCode: time 1.403e-06/0.277, allocations: 0 / 370.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2456/0.5226, allocations: 3.476 MB / 374.1 MB, free: 19.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.5228, allocations: 205.7 kB / 374.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.47, allocations: 3.938 kB / 374.3 MB, free: 18.96 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches