Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_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.002236/0.002237, allocations: 96.78 kB / 17.58 MB, free: 5.418 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.002094/0.002094, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.345/3.345, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002461/0.002461, allocations: 51.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2053, allocations: 46.62 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.006876/0.2123, allocations: 2.247 MB / 329.6 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006913/0.213, allocations: 203.2 kB / 329.8 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.2132, allocations: 4 kB / 329.8 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.2134, allocations: 35.59 kB / 329.9 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.2137, allocations: 63.41 kB / 329.9 MB, free: 1.824 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.214, allocations: 59.86 kB / 330 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000402/0.2145, allocations: 239 kB / 330.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004606/0.215, allocations: 106.9 kB / 330.3 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.2152, allocations: 83.72 kB / 330.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.2154, allocations: 103.5 kB / 330.5 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.32e-05/0.2155, allocations: 20 kB / 330.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.34e-05/0.2156, allocations: 20 kB / 330.5 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.229e-05/0.2157, allocations: 47.84 kB / 330.6 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.2159, allocations: 119.4 kB / 330.7 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004958/0.2164, allocations: 251.1 kB / 330.9 MB, free: 0.793 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.2165, allocations: 0 / 330.9 MB, free: 0.793 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2165, allocations: 4 kB / 330.9 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.2165, allocations: 0 / 330.9 MB, free: 0.7891 MB / 270.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.001282/0.2178, allocations: 0.5031 MB / 331.5 MB, free: 240 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001461/0.218, allocations: 16.02 kB / 331.5 MB, free: 224 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.2182, allocations: 58.73 kB / 331.5 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.644e-05/0.2183, allocations: 24.66 kB / 331.5 MB, free: 132 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.2187, allocations: 220 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.2188, allocations: 20.94 kB / 331.8 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.459e-05/0.2188, allocations: 20.38 kB / 331.8 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000669/0.2195, allocations: 232.8 kB / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.316e-05/0.2197, allocations: 7.922 kB / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.2197, allocations: 8 kB / 332 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.2197, allocations: 8 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004475/0.2202, allocations: 139.8 kB / 332.2 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.2223, allocations: 0.8594 MB / 333.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.2228, allocations: 159.6 kB / 333.2 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.223, allocations: 66.56 kB / 333.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.223, allocations: 0 / 333.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.2231, allocations: 42.5 kB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 2.134e-06/0.2231, allocations: 0 / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007088/0.2238, allocations: 169.6 kB / 333.5 MB, free: 14.03 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.224, allocations: 110.8 kB / 333.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.2243, allocations: 194.6 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.2244, allocations: 33.7 kB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.2245, allocations: 155.8 kB / 334 MB, free: 13.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.2247, allocations: 63.05 kB / 334 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.2248, allocations: 53.98 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.225, allocations: 330.8 kB / 334.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.2252, allocations: 52.48 kB / 334.5 MB, free: 13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.2255, allocations: 154.8 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004895/0.226, allocations: 222.2 kB / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.2261, allocations: 0 / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000682/0.2268, allocations: 245 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.2268, allocations: 11.94 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.043e-05/0.2269, allocations: 4 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.32e-05/0.227, allocations: 4 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.2274, allocations: 67.84 kB / 335.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.027e-05/0.2274, allocations: 8.438 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.2278, allocations: 31.69 kB / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.2278, allocations: 8 kB / 335.2 MB, free: 12.15 MB / 286.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.0002158/0.228, allocations: 141.8 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.2282, allocations: 19.75 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.2284, allocations: 21.41 kB / 335.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2284, allocations: 4 kB / 335.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.2284, allocations: 4 kB / 335.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.2285, allocations: 7.984 kB / 335.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.2295, allocations: 432.7 kB / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.2296, allocations: 0 / 335.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000444/0.23, allocations: 35.98 kB / 335.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.23, allocations: 0 / 335.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.2301, allocations: 8 kB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.2301, allocations: 0 / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/0.2301, allocations: 7.984 kB / 335.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007388/0.2309, allocations: 376.3 kB / 336.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.231, allocations: 96.92 kB / 336.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.2311, allocations: 4 kB / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.2314, allocations: 4 kB / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.2315, allocations: 23.91 kB / 336.4 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.2315, allocations: 4 kB / 336.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.2317, allocations: 144.3 kB / 336.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2318, allocations: 0 / 336.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007672/0.2325, allocations: 55.84 kB / 336.6 MB, free: 10.68 MB / 286.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.001208/0.2338, allocations: 0.9015 MB / 337.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005684/0.2344, allocations: 140.5 kB / 337.6 MB, free: 9.602 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.2344, allocations: 8.062 kB / 337.6 MB, free: 9.594 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.2346, allocations: 55.86 kB / 337.7 MB, free: 9.539 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.2357, allocations: 33.02 kB / 337.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.2412, allocations: 2.563 MB / 340.2 MB, free: 6.742 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005967/0.2418, allocations: 0.7281 MB / 341 MB, free: 5.984 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.242, allocations: 25.94 kB / 341 MB, free: 5.957 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.2422, allocations: 59.42 kB / 341.1 MB, free: 5.898 MB / 286.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2422, allocations: 0 / 341.1 MB, free: 5.898 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04309/0.2853, allocations: 3.65 MB / 344.7 MB, free: 2.188 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13, allocations: 3.953 kB / 344.7 MB, free: 2.184 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches