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.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 3.2.3+maint.om/package.mo", uses=false) 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.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: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001104, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001131/0.001131, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 47.92 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1241, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005872/0.13, allocations: 4.56 MB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2572/0.3873, allocations: 1.359 MB / 381.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006784/0.388, allocations: 24.25 kB / 381.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005026/0.3886, allocations: 178.6 kB / 381.3 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004165/0.389, allocations: 167.5 kB / 381.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3901, allocations: 365.6 kB / 381.8 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.3912, allocations: 0.9759 MB / 382.8 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000743/0.392, allocations: 427.3 kB / 383.2 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.3926, allocations: 330.1 kB / 383.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/0.393, allocations: 347 kB / 383.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.3931, allocations: 72.47 kB / 383.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.3934, allocations: 117 kB / 384 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.3935, allocations: 173.6 kB / 384.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003116/0.3938, allocations: 425.1 kB / 384.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001403/0.3952, allocations: 1.102 MB / 385.7 MB, free: 7.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3953, allocations: 5.5 kB / 385.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3953, allocations: 0 / 385.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.3953, allocations: 1.906 kB / 385.7 MB, free: 7.895 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.001599/0.3969, allocations: 1.136 MB / 386.8 MB, free: 7.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.397, allocations: 10 kB / 386.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.3971, allocations: 103 kB / 387 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.3981, allocations: 0.6307 MB / 387.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.454e-05/0.3982, allocations: 61.72 kB / 387.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.3983, allocations: 84.78 kB / 387.7 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.3997, allocations: 0.8472 MB / 388.6 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.3997, allocations: 12.03 kB / 388.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.036e-05/0.3998, allocations: 40.7 kB / 388.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.3998, allocations: 21.12 kB / 388.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000918/0.4007, allocations: 473.5 kB / 389.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.404, allocations: 4.361 MB / 393.5 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.4047, allocations: 314 kB / 393.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.4049, allocations: 144 kB / 393.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.4051, allocations: 169.7 kB / 394.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.4051, allocations: 37.25 kB / 394.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.4051, allocations: 3.938 kB / 394.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003526/0.4087, allocations: 1.735 MB / 395.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.4087, allocations: 58.28 kB / 395.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006462/0.4094, allocations: 0.5314 MB / 396.4 MB, free: 380 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.4094, allocations: 40.58 kB / 396.5 MB, free: 336 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003008/0.4097, allocations: 480.7 kB / 397 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.4099, allocations: 216.2 kB / 397.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.4101, allocations: 139.8 kB / 397.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.4103, allocations: 383.1 kB / 397.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.4106, allocations: 163.2 kB / 397.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004955/0.4111, allocations: 456.2 kB / 398.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008666/0.412, allocations: 0.6668 MB / 398.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.412, allocations: 2.875 kB / 399 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00124/0.4133, allocations: 0.7388 MB / 399.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.4133, allocations: 9.156 kB / 399.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.4133, allocations: 11.31 kB / 399.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001974/0.4135, allocations: 46.44 kB / 399.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006069/0.4141, allocations: 181.3 kB / 399.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.4156, allocations: 1.7 MB / 401.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.4159, allocations: 25.17 kB / 401.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.416, allocations: 38.78 kB / 401.7 MB, free: 12.27 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.0003797/0.4164, allocations: 233.5 kB / 401.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.4165, allocations: 74.06 kB / 402 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.4167, allocations: 76.19 kB / 402.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.4167, allocations: 6.391 kB / 402.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.4167, allocations: 1.875 kB / 402.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4167, allocations: 2.859 kB / 402.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.4189, allocations: 1.407 MB / 403.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4189, allocations: 3.266 kB / 403.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005055/0.4194, allocations: 113.7 kB / 403.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.4195, allocations: 24.14 kB / 403.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.4196, allocations: 19.42 kB / 403.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009996/0.4206, allocations: 1.37 MB / 405 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/0.4206, allocations: 6.297 kB / 405 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.4219, allocations: 0.7807 MB / 405.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.422, allocations: 140.6 kB / 405.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.39e-05/0.4221, allocations: 16.05 kB / 406 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.4223, allocations: 18.3 kB / 406 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.4225, allocations: 46.83 kB / 406 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.4225, allocations: 18.31 kB / 406 MB, free: 9.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005407/0.423, allocations: 364.2 kB / 406.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.423, allocations: 0 / 406.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008375/0.4239, allocations: 137.2 kB / 406.5 MB, free: 8.84 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.0001724/0.4241, allocations: 123.1 kB / 406.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.4253, allocations: 0.5848 MB / 407.2 MB, free: 8.449 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.4253, allocations: 5.188 kB / 407.2 MB, free: 8.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004568/0.4258, allocations: 311.8 kB / 407.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.4265, allocations: 104.2 kB / 407.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.4296, allocations: 1.846 MB / 409.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006653/0.4303, allocations: 0.9626 MB / 410.5 MB, free: 6.258 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003144/0.4306, allocations: 82.75 kB / 410.5 MB, free: 6.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.4308, allocations: 59.97 kB / 410.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4308, allocations: 1.312 kB / 410.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of Templates: time 0.01345/0.4442, allocations: 5.454 MB / 416 MB, free: 3.836 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches