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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 191.7 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 225.7 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 47.94 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2142, allocations: 52.18 MB / 423.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003424/0.2176, allocations: 2.285 MB / 425.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003935/0.218, allocations: 195.2 kB / 425.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.295e-05/0.2181, allocations: 8 kB / 425.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.331e-05/0.2182, allocations: 35.66 kB / 425.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.2183, allocations: 55.42 kB / 426 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001614/0.2185, allocations: 55.92 kB / 426 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002581/0.2187, allocations: 230.9 kB / 426.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.2189, allocations: 90.92 kB / 426.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.219, allocations: 99.72 kB / 426.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2192, allocations: 103.5 kB / 426.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.2192, allocations: 20 kB / 426.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.34e-05/0.2193, allocations: 24 kB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.369e-05/0.2193, allocations: 43.84 kB / 426.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.2194, allocations: 111.5 kB / 426.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.2197, allocations: 256.1 kB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2197, allocations: 0 / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2197, allocations: 0 / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.2197, allocations: 0 / 427 MB, free: 11.28 MB / 334.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.0006855/0.2204, allocations: 449.8 kB / 427.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2204, allocations: 12.03 kB / 427.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.607e-05/0.2205, allocations: 4.688 kB / 427.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/0.2205, allocations: 66.67 kB / 427.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.2206, allocations: 24.8 kB / 427.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.2208, allocations: 158.2 kB / 427.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.2208, allocations: 16.88 kB / 427.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.2208, allocations: 28.36 kB / 427.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.2212, allocations: 231.8 kB / 428 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.2212, allocations: 3.938 kB / 428 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.2213, allocations: 12 kB / 428 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2213, allocations: 8 kB / 428 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.2215, allocations: 135.8 kB / 428.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.2226, allocations: 0.8136 MB / 428.9 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.2228, allocations: 151.8 kB / 429.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.336e-05/0.2229, allocations: 62.5 kB / 429.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.2229, allocations: 8.25 kB / 429.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.223, allocations: 42.55 kB / 429.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.223, allocations: 0 / 429.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003638/0.2233, allocations: 165.5 kB / 429.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.2234, allocations: 110.8 kB / 429.5 MB, free: 8.586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.2236, allocations: 195.1 kB / 429.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.2236, allocations: 33.64 kB / 429.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.2237, allocations: 164.2 kB / 429.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.347e-05/0.2238, allocations: 67.38 kB / 429.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.2239, allocations: 57.94 kB / 430 MB, free: 8.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.224, allocations: 326.8 kB / 430.3 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.718e-05/0.2241, allocations: 48.55 kB / 430.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.2243, allocations: 159.6 kB / 430.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.2246, allocations: 226.1 kB / 430.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.2246, allocations: 0 / 430.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003676/0.2249, allocations: 241.4 kB / 430.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.2249, allocations: 8 kB / 430.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2249, allocations: 4 kB / 431 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.225, allocations: 11.98 kB / 431 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.2252, allocations: 59.92 kB / 431 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.2252, allocations: 11.94 kB / 431 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.2253, allocations: 27.78 kB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.2253, allocations: 8 kB / 431.1 MB, free: 6.832 MB / 334.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.0001395/0.2255, allocations: 146 kB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.256e-05/0.2255, allocations: 23.8 kB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.525e-05/0.2256, allocations: 25.41 kB / 431.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2256, allocations: 0 / 431.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2256, allocations: 0 / 431.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.2256, allocations: 7.984 kB / 431.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005471/0.2262, allocations: 395.9 kB / 431.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2262, allocations: 0 / 431.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.2264, allocations: 39.92 kB / 431.7 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2264, allocations: 0 / 431.7 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2264, allocations: 8 kB / 431.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.187e-05/0.2264, allocations: 11.92 kB / 431.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2264, allocations: 0 / 431.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.2268, allocations: 384.7 kB / 432.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.16e-05/0.2268, allocations: 15.86 kB / 432.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.2268, allocations: 8 kB / 432.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.227, allocations: 0 / 432.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.159e-05/0.227, allocations: 23.95 kB / 432.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.227, allocations: 4 kB / 432.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.2271, allocations: 148.4 kB / 432.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2271, allocations: 0 / 432.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.2275, allocations: 51.89 kB / 432.3 MB, free: 5.477 MB / 334.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.0006972/0.2282, allocations: 0.9054 MB / 433.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002606/0.2285, allocations: 135.7 kB / 433.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2285, allocations: 0.875 kB / 433.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.675e-05/0.2285, allocations: 52.05 kB / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.229, allocations: 32.06 kB / 433.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.232, allocations: 2.569 MB / 436 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.2324, allocations: 0.732 MB / 436.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.921e-05/0.2325, allocations: 29.92 kB / 436.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.2327, allocations: 51.42 kB / 436.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2327, allocations: 0 / 436.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.2581, allocations: 4.05 MB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.75, allocations: 5.172 kB / 440.9 MB, free: 12.82 MB / 350.1 MB " [Timeout remaining time 649] (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/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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.949752004991751]