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.001475/0.001475, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001446/0.001446, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001573/0.001573, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0808/0.08238, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003281/0.0857, allocations: 2.239 MB / 376.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003952/0.08612, allocations: 195.3 kB / 377.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.016e-05/0.08621, allocations: 7.938 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.01e-05/0.08632, allocations: 39.64 kB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.08647, allocations: 63.42 kB / 377.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000161/0.08663, allocations: 47.94 kB / 377.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.08688, allocations: 235 kB / 377.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.08709, allocations: 118.3 kB / 377.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.9e-05/0.0872, allocations: 83.72 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.08735, allocations: 103.5 kB / 377.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.358e-05/0.08739, allocations: 20 kB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.045e-05/0.08743, allocations: 20 kB / 377.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.876e-05/0.08749, allocations: 51.84 kB / 377.8 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.0876, allocations: 115.5 kB / 378 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.08788, allocations: 262.8 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.08789, allocations: 0 / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.0879, allocations: 0 / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.08791, allocations: 0 / 378.2 MB, free: 1.48 MB / 318.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.0006874/0.0886, allocations: 0.5107 MB / 378.7 MB, free: 0.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.08864, allocations: 8.031 kB / 378.7 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.337e-05/0.08871, allocations: 54.73 kB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.08876, allocations: 28.73 kB / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.08898, allocations: 231.9 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.089, allocations: 12.94 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.08905, allocations: 24.38 kB / 379.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003516/0.0894, allocations: 232.9 kB / 379.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.08943, allocations: 3.938 kB / 379.3 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.08945, allocations: 8 kB / 379.3 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.08947, allocations: 4 kB / 379.3 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.0897, allocations: 139.8 kB / 379.5 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1501/0.2398, allocations: 0.8534 MB / 380.3 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.2401, allocations: 163.1 kB / 380.5 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.871e-05/0.2401, allocations: 61.03 kB / 380.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2402, allocations: 2.125 kB / 380.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.2402, allocations: 40.23 kB / 380.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.826e-06/0.2402, allocations: 3.188 kB / 380.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003381/0.2405, allocations: 171.2 kB / 380.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.2406, allocations: 105.7 kB / 380.8 MB, free: 12.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2408, allocations: 201.1 kB / 381 MB, free: 11.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.2408, allocations: 30.3 kB / 381.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.2408, allocations: 165 kB / 381.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.2409, allocations: 65.83 kB / 381.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.431e-05/0.241, allocations: 54.3 kB / 381.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.872e-05/0.241, allocations: 330.6 kB / 381.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.598e-05/0.2411, allocations: 44.11 kB / 381.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.2412, allocations: 155.9 kB / 381.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.2414, allocations: 220.7 kB / 382.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2414, allocations: 4.812 kB / 382.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003029/0.2417, allocations: 238.5 kB / 382.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.2418, allocations: 9.406 kB / 382.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.2418, allocations: 2.75 kB / 382.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2418, allocations: 10.31 kB / 382.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.242, allocations: 61.33 kB / 382.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.242, allocations: 10.8 kB / 382.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.2422, allocations: 35.78 kB / 382.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.2422, allocations: 14.12 kB / 382.5 MB, free: 11.14 MB / 318.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 8.893e-05/0.2423, allocations: 141.6 kB / 382.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.005e-05/0.2424, allocations: 18.19 kB / 382.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.256e-05/0.2424, allocations: 29.19 kB / 382.6 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2425, allocations: 4.016 kB / 382.7 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2425, allocations: 4.562 kB / 382.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2425, allocations: 2 kB / 382.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004367/0.2429, allocations: 422.1 kB / 383.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2429, allocations: 1.656 kB / 383.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.2431, allocations: 45.66 kB / 383.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.2431, allocations: 1.906 kB / 383.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2432, allocations: 6.406 kB / 383.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.2432, allocations: 6.438 kB / 383.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2432, allocations: 2.344 kB / 383.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003572/0.2435, allocations: 378.3 kB / 383.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.2436, allocations: 96.2 kB / 383.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.2436, allocations: 3.25 kB / 383.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.2438, allocations: 6.203 kB / 383.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.2438, allocations: 9.75 kB / 383.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.2438, allocations: 9.438 kB / 383.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.2439, allocations: 143.3 kB / 383.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2439, allocations: 0.625 kB / 383.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.2443, allocations: 57.42 kB / 383.8 MB, free: 10.11 MB / 318.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.0004221/0.2447, allocations: 0.9092 MB / 384.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.245, allocations: 153.9 kB / 384.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.245, allocations: 1.156 kB / 384.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.85e-05/0.245, allocations: 52.64 kB / 384.9 MB, free: 9.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.2455, allocations: 35.19 kB / 385 MB, free: 9.207 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.2475, allocations: 2.56 MB / 387.5 MB, free: 7.125 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2477, allocations: 0.735 MB / 388.3 MB, free: 6.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.564e-05/0.2478, allocations: 20.81 kB / 388.3 MB, free: 6.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.113e-05/0.2478, allocations: 54.34 kB / 388.3 MB, free: 6.371 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2478, allocations: 1.469 kB / 388.3 MB, free: 6.371 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.2751, allocations: 3.75 MB / 392.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/7.962, allocations: 5.094 kB / 392.1 MB, free: 5.664 MB / 318.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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