Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001263/0.001263, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001021/0.001021, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8511/0.8511, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.809e-05/1.958e-05, allocations: 2.281 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003792/0.003811, allocations: 4.129 MB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.006001, allocations: 1.36 MB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005628/0.006564, allocations: 31.69 kB / 330.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000369/0.006933, allocations: 190.1 kB / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004804/0.007414, allocations: 170.2 kB / 330.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007737/0.008187, allocations: 379.3 kB / 330.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009672/0.009155, allocations: 0.9973 MB / 331.8 MB, free: 8.684 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004019/0.009557, allocations: 267.4 kB / 332.1 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006257/0.01018, allocations: 0.5066 MB / 332.6 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.01043, allocations: 231.1 kB / 332.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.47e-05/0.01051, allocations: 72 kB / 332.9 MB, free: 7.598 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.01069, allocations: 123.8 kB / 333 MB, free: 7.477 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.858e-05/0.01078, allocations: 175.2 kB / 333.1 MB, free: 7.305 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.01095, allocations: 267.2 kB / 333.4 MB, free: 7.043 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.01199, allocations: 1.094 MB / 334.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.012, allocations: 4 kB / 334.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.012, allocations: 0 / 334.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.451e-05/0.01202, allocations: 0 / 334.5 MB, free: 5.941 MB / 298.7 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.001262/0.01328, allocations: 1.092 MB / 335.6 MB, free: 4.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.01333, allocations: 8.031 kB / 335.6 MB, free: 4.812 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.984e-05/0.01343, allocations: 127 kB / 335.7 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000196/0.01362, allocations: 123.3 kB / 335.9 MB, free: 4.559 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006866/0.01431, allocations: 0.5551 MB / 336.4 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.01434, allocations: 58 kB / 336.5 MB, free: 3.918 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.927e-05/0.01441, allocations: 83.95 kB / 336.5 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008178/0.01523, allocations: 0.8443 MB / 337.4 MB, free: 2.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.01526, allocations: 11.94 kB / 337.4 MB, free: 2.871 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.448e-05/0.0153, allocations: 35.94 kB / 337.4 MB, free: 2.836 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.01532, allocations: 24 kB / 337.5 MB, free: 2.812 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005771/0.0159, allocations: 463.3 kB / 337.9 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.01845, allocations: 4.163 MB / 342.1 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003699/0.01882, allocations: 292.3 kB / 342.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.01896, allocations: 137.5 kB / 342.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.01906, allocations: 12.38 kB / 342.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.01909, allocations: 42.88 kB / 342.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 2.876e-06/0.01909, allocations: 0 / 342.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.002024/0.02111, allocations: 1.607 MB / 344.2 MB, free: 11.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.02115, allocations: 63.84 kB / 344.2 MB, free: 11.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.02153, allocations: 0.5508 MB / 344.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.02155, allocations: 37.7 kB / 344.8 MB, free: 11.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.02175, allocations: 487.7 kB / 345.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.427e-05/0.02185, allocations: 226.1 kB / 345.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.02195, allocations: 134.6 kB / 345.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.02207, allocations: 386.7 kB / 346 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.02225, allocations: 161.9 kB / 346.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.02254, allocations: 451.3 kB / 346.6 MB, free: 9.211 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.02306, allocations: 0.6683 MB / 347.3 MB, free: 8.406 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.02306, allocations: 4 kB / 347.3 MB, free: 8.402 MB / 314.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009512/0.02401, allocations: 0.7434 MB / 348 MB, free: 7.652 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.02403, allocations: 12.88 kB / 348 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.02405, allocations: 12 kB / 348.1 MB, free: 7.629 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001324/0.02418, allocations: 52.83 kB / 348.1 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.0245, allocations: 183.7 kB / 348.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00092/0.02542, allocations: 1.57 MB / 349.9 MB, free: 5.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.02563, allocations: 24 kB / 349.9 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.02566, allocations: 32 kB / 349.9 MB, free: 5.66 MB / 314.7 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.0003067/0.02597, allocations: 233.5 kB / 350.1 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.231e-05/0.02605, allocations: 79.59 kB / 350.2 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.09e-05/0.02614, allocations: 79.06 kB / 350.3 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.02615, allocations: 12.12 kB / 350.3 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/0.02617, allocations: 7.938 kB / 350.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.02618, allocations: 0 / 350.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.02747, allocations: 1.273 MB / 351.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.02748, allocations: 4 kB / 351.6 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/0.02775, allocations: 119.8 kB / 351.7 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.884e-05/0.02783, allocations: 20.84 kB / 351.7 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.02786, allocations: 16 kB / 351.7 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006445/0.0285, allocations: 1.26 MB / 353 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.0285, allocations: 3.938 kB / 353 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006767/0.02918, allocations: 0.7768 MB / 353.8 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.424e-05/0.02924, allocations: 63.53 kB / 353.8 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.02927, allocations: 19.92 kB / 353.9 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.02938, allocations: 12.19 kB / 353.9 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.02943, allocations: 47.95 kB / 353.9 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.02945, allocations: 23.94 kB / 353.9 MB, free: 1.348 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002715/0.02972, allocations: 359.1 kB / 354.3 MB, free: 1 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02972, allocations: 0 / 354.3 MB, free: 1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004409/0.03016, allocations: 140 kB / 354.4 MB, free: 0.8633 MB / 314.7 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.001277/0.03144, allocations: 1.339 MB / 355.8 MB, free: 15.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000667/0.03211, allocations: 0.5729 MB / 356.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.03211, allocations: 0 / 356.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.03233, allocations: 294.5 kB / 356.6 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.03274, allocations: 108 kB / 356.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005492/0.03823, allocations: 5.842 MB / 362.6 MB, free: 8.215 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.03847, allocations: 370.3 kB / 362.9 MB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.03866, allocations: 90 kB / 363 MB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.03891, allocations: 328.4 kB / 363.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of SimCode: time 1.703e-06/0.03892, allocations: 0 / 363.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.07142, allocations: 12.71 MB / 376.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.859/6.931, allocations: 6.984 kB / 376.1 MB, free: 10.94 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.543053555302322]