Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.004422/0.004422, allocations: 111.1 kB / 21.97 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 205.1 kB / 25.27 MB, free: 3.234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 56.39 kB / 348 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2167, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004495/0.2212, allocations: 4.595 MB / 401.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.2239, allocations: 1.391 MB / 403.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005378/0.2244, allocations: 33.88 kB / 403.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.2248, allocations: 180.8 kB / 403.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003554/0.2252, allocations: 162.7 kB / 403.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008159/0.226, allocations: 375.8 kB / 403.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.227, allocations: 0.9722 MB / 404.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000464/0.2275, allocations: 285.8 kB / 405.1 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.2279, allocations: 347.1 kB / 405.4 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.2282, allocations: 342 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.753e-05/0.2282, allocations: 72.22 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.2284, allocations: 120.7 kB / 406 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.2285, allocations: 178.9 kB / 406.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.2288, allocations: 428.6 kB / 406.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.2298, allocations: 1.105 MB / 407.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2298, allocations: 1.344 kB / 407.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2298, allocations: 0 / 407.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.2298, allocations: 3.938 kB / 407.7 MB, free: 2.215 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001381/0.2312, allocations: 1.094 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2313, allocations: 13.8 kB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.971e-05/0.2313, allocations: 21.56 kB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.2314, allocations: 126.5 kB / 408.9 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.2315, allocations: 112.3 kB / 409 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007856/0.2323, allocations: 0.545 MB / 409.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.2323, allocations: 61.62 kB / 409.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.2324, allocations: 90.73 kB / 409.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.2335, allocations: 0.8495 MB / 410.6 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.2335, allocations: 8.547 kB / 410.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.83e-05/0.2335, allocations: 33.28 kB / 410.6 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.2336, allocations: 22.31 kB / 410.6 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007872/0.2344, allocations: 473.8 kB / 411.1 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00376/0.2381, allocations: 4.331 MB / 415.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.2386, allocations: 286.7 kB / 415.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.2389, allocations: 131.3 kB / 415.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.239, allocations: 14.61 kB / 415.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.239, allocations: 41.31 kB / 415.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.513e-06/0.239, allocations: 1.188 kB / 415.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00301/0.242, allocations: 1.603 MB / 417.5 MB, free: 11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.2421, allocations: 61.67 kB / 417.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005519/0.2426, allocations: 0.5289 MB / 418.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.2426, allocations: 35.8 kB / 418.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.243, allocations: 495.2 kB / 418.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.2431, allocations: 223.3 kB / 418.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.2433, allocations: 137.2 kB / 419 MB, free: 9.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.2435, allocations: 382.8 kB / 419.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.2438, allocations: 167.9 kB / 419.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.2443, allocations: 453.9 kB / 419.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.2451, allocations: 0.6617 MB / 420.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2451, allocations: 3 kB / 420.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001105/0.2462, allocations: 0.7433 MB / 421.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.2462, allocations: 8.719 kB / 421.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.2462, allocations: 10.72 kB / 421.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.2464, allocations: 54.62 kB / 421.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000525/0.2469, allocations: 185.7 kB / 421.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.2483, allocations: 1.575 MB / 423.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.2486, allocations: 33.3 kB / 423.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.2486, allocations: 33.84 kB / 423.2 MB, free: 6.336 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003153/0.2489, allocations: 236.3 kB / 423.5 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.555e-05/0.249, allocations: 77.69 kB / 423.5 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.2492, allocations: 76.45 kB / 423.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2492, allocations: 9.312 kB / 423.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.2492, allocations: 1 kB / 423.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.2492, allocations: 3.984 kB / 423.6 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.2511, allocations: 1.376 MB / 425 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.2511, allocations: 6.75 kB / 425 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004348/0.2515, allocations: 110.6 kB / 425.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.38e-05/0.2516, allocations: 30.34 kB / 425.2 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.2516, allocations: 14.53 kB / 425.2 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000934/0.2526, allocations: 1.271 MB / 426.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2526, allocations: 6.641 kB / 426.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.2536, allocations: 0.7775 MB / 427.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.7e-05/0.2537, allocations: 60.28 kB / 427.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.336e-05/0.2538, allocations: 17.77 kB / 427.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.254, allocations: 18.84 kB / 427.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.399e-05/0.2541, allocations: 45.84 kB / 427.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.2541, allocations: 17.14 kB / 427.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003937/0.2545, allocations: 361.4 kB / 427.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2545, allocations: 4 kB / 427.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000631/0.2551, allocations: 138.3 kB / 427.9 MB, free: 2.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001359/0.2565, allocations: 1.339 MB / 429.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009298/0.2574, allocations: 0.5656 MB / 429.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2574, allocations: 0 / 429.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004093/0.2578, allocations: 298.4 kB / 430.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006012/0.2584, allocations: 103.5 kB / 430.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007991/0.2664, allocations: 6.081 MB / 436.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006578/0.2671, allocations: 0.9652 MB / 437.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002575/0.2673, allocations: 81.92 kB / 437.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004418/0.2678, allocations: 327.3 kB / 437.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2678, allocations: 0 / 437.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03961/0.3074, allocations: 12.5 MB / 450.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.01, allocations: 8 kB / 450.1 MB, free: 12.56 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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: 14.191384423989803]