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.001454/0.001454, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001505/0.001505, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.433/1.433, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",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.002048/0.002048, allocations: 56.39 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2963, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005879/0.3022, allocations: 4.6 MB / 400.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003211/0.3054, allocations: 1.387 MB / 402.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.3067, allocations: 34.47 kB / 402.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007228/0.3074, allocations: 183 kB / 402.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000771/0.3082, allocations: 158.7 kB / 402.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.3092, allocations: 380.7 kB / 403.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001172/0.3104, allocations: 0.9762 MB / 404 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004325/0.3108, allocations: 289.1 kB / 404.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004581/0.3113, allocations: 340.8 kB / 404.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003567/0.3116, allocations: 341.8 kB / 405 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.3117, allocations: 71.69 kB / 405.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.312, allocations: 119.4 kB / 405.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3121, allocations: 172.6 kB / 405.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.3124, allocations: 434.4 kB / 405.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.3136, allocations: 1.104 MB / 406.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3136, allocations: 0 / 406.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3136, allocations: 0 / 406.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.151e-05/0.3136, allocations: 0 / 406.9 MB, free: 2.242 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.001526/0.3152, allocations: 1.099 MB / 408 MB, free: 1.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3152, allocations: 12.86 kB / 408 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.3153, allocations: 127.7 kB / 408.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.3154, allocations: 110.8 kB / 408.2 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008106/0.3162, allocations: 0.5493 MB / 408.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.3163, allocations: 63 kB / 408.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.681e-05/0.3164, allocations: 85.05 kB / 408.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.3175, allocations: 0.8424 MB / 409.8 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.3175, allocations: 9.156 kB / 409.8 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.3176, allocations: 32.91 kB / 409.8 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.3176, allocations: 22.16 kB / 409.8 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008082/0.3184, allocations: 477.9 kB / 410.3 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004136/0.3225, allocations: 4.332 MB / 414.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005931/0.3231, allocations: 289.8 kB / 414.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.3234, allocations: 131.7 kB / 415 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.3235, allocations: 15.11 kB / 415 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.3235, allocations: 37.22 kB / 415.1 MB, free: 12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.984e-06/0.3235, allocations: 0 / 415.1 MB, free: 12 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00333/0.3269, allocations: 1.603 MB / 416.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.3269, allocations: 61.5 kB / 416.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006211/0.3275, allocations: 0.5412 MB / 417.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.3276, allocations: 35.2 kB / 417.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.3279, allocations: 486.5 kB / 417.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.3281, allocations: 226.9 kB / 418 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.3283, allocations: 143 kB / 418.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.3285, allocations: 375 kB / 418.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.3288, allocations: 162.4 kB / 418.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.3293, allocations: 458 kB / 419.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008848/0.3302, allocations: 0.6629 MB / 419.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3302, allocations: 2.719 kB / 419.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001198/0.3314, allocations: 0.7395 MB / 420.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3314, allocations: 8.188 kB / 420.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.3314, allocations: 9.594 kB / 420.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.3316, allocations: 47.12 kB / 420.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005635/0.3322, allocations: 185.5 kB / 420.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.3337, allocations: 1.588 MB / 422.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.3341, allocations: 28.34 kB / 422.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.3341, allocations: 38.66 kB / 422.4 MB, free: 6.348 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.0003758/0.3345, allocations: 231.8 kB / 422.7 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.3346, allocations: 77.06 kB / 422.7 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.3348, allocations: 72.8 kB / 422.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3348, allocations: 5.969 kB / 422.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.3348, allocations: 1.094 kB / 422.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3348, allocations: 3.984 kB / 422.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.3369, allocations: 1.382 MB / 424.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3369, allocations: 2.75 kB / 424.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004622/0.3374, allocations: 116 kB / 424.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.599e-05/0.3375, allocations: 25.22 kB / 424.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.3375, allocations: 14.88 kB / 424.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.3386, allocations: 1.283 MB / 425.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3386, allocations: 7.125 kB / 425.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3396, allocations: 0.7733 MB / 426.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.3398, allocations: 60.12 kB / 426.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.9e-05/0.3398, allocations: 17.67 kB / 426.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.34, allocations: 22.03 kB / 426.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.975e-05/0.3401, allocations: 42.59 kB / 426.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.3401, allocations: 20.7 kB / 426.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004434/0.3406, allocations: 362 kB / 426.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3406, allocations: 0 / 426.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007095/0.3413, allocations: 138.2 kB / 427.1 MB, free: 2.781 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.001502/0.3428, allocations: 1.335 MB / 428.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.3438, allocations: 0.5736 MB / 429 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3438, allocations: 1.156 kB / 429 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.3442, allocations: 297.7 kB / 429.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.3448, allocations: 87.72 kB / 429.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008439/0.3533, allocations: 6.075 MB / 435.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006618/0.3539, allocations: 0.9652 MB / 436.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.3542, allocations: 93.91 kB / 436.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.3546, allocations: 327.7 kB / 436.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3546, allocations: 0 / 436.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04851/0.4031, allocations: 12.48 MB / 449.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.71, allocations: 3.938 kB / 449.3 MB, free: 12.61 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.157376934075728]