Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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 4.0.0+maint.om/package.mo", uses=false) 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.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",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.0008876/0.0008876, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0009832/0.0009832, allocations: 177 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 8 kB / 301.5 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 50.41 MB / 351.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005091/0.1139, allocations: 4.142 MB / 356.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002576/0.1165, allocations: 1.286 MB / 357.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006921/0.1172, allocations: 19.88 kB / 357.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006006/0.1178, allocations: 138.8 kB / 357.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006583/0.1185, allocations: 134.8 kB / 357.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008202/0.1193, allocations: 319.7 kB / 358 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.1205, allocations: 0.9195 MB / 358.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005981/0.1211, allocations: 370.9 kB / 359.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004144/0.1216, allocations: 258.5 kB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003854/0.122, allocations: 294 kB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.798e-05/0.1221, allocations: 28 kB / 359.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.1223, allocations: 75.97 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.1224, allocations: 111.4 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003293/0.1227, allocations: 399.2 kB / 360.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008142/0.1235, allocations: 0.9378 MB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1236, allocations: 0 / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1236, allocations: 0 / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1236, allocations: 0 / 361.3 MB, free: 10.16 MB / 302.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.001254/0.1248, allocations: 0.9899 MB / 362.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.1249, allocations: 8.031 kB / 362.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.125, allocations: 122.9 kB / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.1252, allocations: 106.7 kB / 362.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007343/0.1259, allocations: 0.5994 MB / 363.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.126, allocations: 62 kB / 363.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.952e-05/0.1261, allocations: 80 kB / 363.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1273, allocations: 0.8481 MB / 364.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.1274, allocations: 11.84 kB / 364.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-05/0.1274, allocations: 36 kB / 364.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/0.1275, allocations: 27.98 kB / 364.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008391/0.1283, allocations: 471.3 kB / 364.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003576/0.1319, allocations: 4.404 MB / 369.1 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005525/0.1325, allocations: 299.5 kB / 369.4 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.1327, allocations: 145.5 kB / 369.5 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000217/0.1329, allocations: 170.6 kB / 369.7 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.133, allocations: 38.92 kB / 369.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.074e-06/0.133, allocations: 0 / 369.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1884/0.3214, allocations: 1.744 MB / 371.5 MB, free: 24.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.3214, allocations: 59.69 kB / 371.5 MB, free: 24.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008076/0.3223, allocations: 0.5327 MB / 372 MB, free: 23.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.3223, allocations: 35.52 kB / 372.1 MB, free: 23.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003/0.3226, allocations: 485.2 kB / 372.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.3227, allocations: 216.8 kB / 372.8 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.892e-05/0.3228, allocations: 69.17 kB / 372.8 MB, free: 23.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.323, allocations: 387.5 kB / 373.2 MB, free: 23.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.3233, allocations: 160.4 kB / 373.4 MB, free: 23.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003872/0.3237, allocations: 464.6 kB / 373.8 MB, free: 22.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007317/0.3244, allocations: 0.6705 MB / 374.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.3244, allocations: 2.531 kB / 374.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001248/0.3257, allocations: 0.7397 MB / 375.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.3257, allocations: 9.375 kB / 375.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.3257, allocations: 10.42 kB / 375.3 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001838/0.3259, allocations: 54.52 kB / 375.3 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.3265, allocations: 185.2 kB / 375.5 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.3276, allocations: 1.519 MB / 377 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.3279, allocations: 31.97 kB / 377 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.328, allocations: 42.12 kB / 377.1 MB, free: 20.9 MB / 302.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.0002579/0.3282, allocations: 231.8 kB / 377.3 MB, free: 20.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-05/0.3283, allocations: 69.05 kB / 377.4 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.3285, allocations: 77.66 kB / 377.4 MB, free: 20.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3285, allocations: 5.5 kB / 377.5 MB, free: 20.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/0.3285, allocations: 1.375 kB / 377.5 MB, free: 20.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.3285, allocations: 3.609 kB / 377.5 MB, free: 20.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.3304, allocations: 1.424 MB / 378.9 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.3304, allocations: 5.594 kB / 378.9 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/0.3309, allocations: 119.1 kB / 379 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.328e-05/0.331, allocations: 28.62 kB / 379 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.331, allocations: 14.38 kB / 379 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005833/0.3316, allocations: 1.273 MB / 380.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3316, allocations: 4.125 kB / 380.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009288/0.3325, allocations: 0.7842 MB / 381.1 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.885e-05/0.3326, allocations: 138.6 kB / 381.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.463e-05/0.3327, allocations: 13.7 kB / 381.3 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.3329, allocations: 20.95 kB / 381.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.333, allocations: 42.94 kB / 381.3 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.333, allocations: 18.78 kB / 381.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003824/0.3334, allocations: 363.9 kB / 381.7 MB, free: 17.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3334, allocations: 0 / 381.7 MB, free: 17.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.3341, allocations: 137 kB / 381.8 MB, free: 17.64 MB / 302.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.001199/0.3353, allocations: 1.349 MB / 383.2 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000948/0.3363, allocations: 0.5889 MB / 383.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3363, allocations: 4.062 kB / 383.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.3367, allocations: 309.4 kB / 384.1 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008149/0.3375, allocations: 91.23 kB / 384.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.3453, allocations: 6.765 MB / 390.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005803/0.3459, allocations: 0.9643 MB / 391.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00036/0.3463, allocations: 83.14 kB / 392 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003574/0.3466, allocations: 325.7 kB / 392.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3466, allocations: 0 / 392.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4454/0.792, allocations: 11.05 MB / 403.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.7923, allocations: 231.5 kB / 403.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.334/3.127, allocations: 0 / 403.6 MB, free: 3.648 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches