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.00113/0.00113, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 59.2 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.119, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.004567/0.1237, allocations: 2.259 MB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005888/0.1243, allocations: 199.3 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002454/0.1245, allocations: 7.938 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.1247, allocations: 43.58 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.1249, allocations: 59.42 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.1252, allocations: 59.92 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003431/0.1255, allocations: 235 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002417/0.1258, allocations: 114.5 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.1259, allocations: 83.72 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.1261, allocations: 103.5 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.1261, allocations: 20 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.682e-05/0.1262, allocations: 20 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.1263, allocations: 51.84 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.1265, allocations: 115.5 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.1268, allocations: 247.4 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.1268, allocations: 4 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1268, allocations: 0 / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1268, allocations: 7.938 kB / 361.2 MB, free: 10.36 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.0009201/0.1277, allocations: 0.4955 MB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.1278, allocations: 12.03 kB / 361.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.607e-05/0.1279, allocations: 58.72 kB / 361.7 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.1279, allocations: 28.66 kB / 361.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.1282, allocations: 223.9 kB / 362 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.1282, allocations: 16.94 kB / 362 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.1283, allocations: 24.31 kB / 362 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.1287, allocations: 232.8 kB / 362.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.1288, allocations: 7.938 kB / 362.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.575e-05/0.1288, allocations: 7.984 kB / 362.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.1288, allocations: 12 kB / 362.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002479/0.1291, allocations: 134.4 kB / 362.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.1303, allocations: 0.8556 MB / 363.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.1306, allocations: 159.7 kB / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.59e-05/0.1307, allocations: 62.56 kB / 363.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.1307, allocations: 3.984 kB / 363.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.1307, allocations: 38.5 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.685e-06/0.1307, allocations: 0 / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003586/0.1311, allocations: 174.1 kB / 363.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.1312, allocations: 110.8 kB / 363.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.1314, allocations: 202.3 kB / 364 MB, free: 7.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1314, allocations: 29.7 kB / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.57e-05/0.1315, allocations: 155.8 kB / 364.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.1316, allocations: 63.11 kB / 364.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.727e-05/0.1317, allocations: 53.89 kB / 364.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1318, allocations: 326.8 kB / 364.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.557e-05/0.1319, allocations: 56.53 kB / 364.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.132, allocations: 155.6 kB / 364.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.1323, allocations: 221.6 kB / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1323, allocations: 0 / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003462/0.1327, allocations: 241.1 kB / 365.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1327, allocations: 11.94 kB / 365.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1327, allocations: 8 kB / 365.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.1328, allocations: 4 kB / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.133, allocations: 60.34 kB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.133, allocations: 12 kB / 365.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.1332, allocations: 27.69 kB / 365.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.1332, allocations: 12 kB / 365.4 MB, free: 5.73 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.0001237/0.1333, allocations: 142.8 kB / 365.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.1334, allocations: 19.75 kB / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.391e-05/0.1335, allocations: 25.39 kB / 365.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1335, allocations: 4 kB / 365.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1335, allocations: 0 / 365.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1335, allocations: 12.12 kB / 365.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005301/0.1341, allocations: 420.8 kB / 366 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.1341, allocations: 0 / 366 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.1343, allocations: 39.98 kB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1343, allocations: 7.922 kB / 366.1 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1344, allocations: 4 kB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.788e-06/0.1344, allocations: 0 / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1344, allocations: 12.03 kB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003823/0.1348, allocations: 372.9 kB / 366.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.933e-05/0.1348, allocations: 100.9 kB / 366.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.1349, allocations: 8 kB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.135, allocations: 7.938 kB / 366.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.1351, allocations: 23.86 kB / 366.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.1351, allocations: 4 kB / 366.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001025/0.1352, allocations: 135.2 kB / 366.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1352, allocations: 0 / 366.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003653/0.1356, allocations: 55.84 kB / 366.8 MB, free: 4.246 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.0006711/0.1363, allocations: 0.9044 MB / 367.7 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002697/0.1366, allocations: 154.8 kB / 367.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1366, allocations: 0 / 367.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.496e-05/0.1366, allocations: 52.55 kB / 367.9 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005505/0.1372, allocations: 36.06 kB / 367.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.1401, allocations: 2.542 MB / 370.5 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1687/0.3088, allocations: 0.7322 MB / 371.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002144/0.309, allocations: 20.42 kB / 371.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3092, allocations: 57.25 kB / 371.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3092, allocations: 0 / 371.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.3334, allocations: 3.65 MB / 374.9 MB, free: 19.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.27, allocations: 10.62 kB / 374.9 MB, free: 19.11 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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