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.001321/0.001321, allocations: 105.5 kB / 18.39 MB, free: 4.699 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.001248/0.001248, allocations: 187.1 kB / 19.33 MB, free: 3.773 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.322/1.322, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001514/0.001514, allocations: 51.92 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.09088, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006013/0.09695, allocations: 4.565 MB / 380.4 MB, free: 8 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2072/0.3042, allocations: 1.358 MB / 381.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003814/0.3046, allocations: 24.53 kB / 381.8 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003979/0.305, allocations: 176.8 kB / 381.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003295/0.3054, allocations: 164 kB / 382.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.3065, allocations: 368 kB / 382.4 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.3077, allocations: 0.9775 MB / 383.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006593/0.3084, allocations: 427.5 kB / 383.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004567/0.3088, allocations: 329.9 kB / 384.2 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.3092, allocations: 344.1 kB / 384.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.3093, allocations: 72.25 kB / 384.6 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.3095, allocations: 119.4 kB / 384.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.3097, allocations: 171.4 kB / 384.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003402/0.3101, allocations: 429 kB / 385.3 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.3113, allocations: 1.102 MB / 386.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3113, allocations: 4 kB / 386.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3114, allocations: 0 / 386.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.3114, allocations: 0 / 386.4 MB, free: 7.906 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.001704/0.3131, allocations: 1.139 MB / 387.5 MB, free: 7.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3131, allocations: 9.844 kB / 387.5 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.3133, allocations: 101.9 kB / 387.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.3144, allocations: 0.631 MB / 388.3 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/0.3144, allocations: 57.31 kB / 388.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.3146, allocations: 89.94 kB / 388.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3159, allocations: 0.8459 MB / 389.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/0.3159, allocations: 9.484 kB / 389.3 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.395e-05/0.316, allocations: 37.56 kB / 389.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.839e-05/0.316, allocations: 21.64 kB / 389.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.3169, allocations: 474.3 kB / 389.8 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.32, allocations: 4.368 MB / 394.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005506/0.3206, allocations: 314.1 kB / 394.5 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.3208, allocations: 139.5 kB / 394.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.321, allocations: 170.8 kB / 394.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.3211, allocations: 38 kB / 394.8 MB, free: 1.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 3.006e-06/0.3211, allocations: 0 / 394.8 MB, free: 1.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003411/0.3245, allocations: 1.736 MB / 396.5 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.3245, allocations: 59.09 kB / 396.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006756/0.3252, allocations: 0.5346 MB / 397.1 MB, free: 392 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.3253, allocations: 39.11 kB / 397.2 MB, free: 348 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.3256, allocations: 482.2 kB / 397.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.3258, allocations: 213.8 kB / 397.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.3261, allocations: 136.1 kB / 398 MB, free: 15.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.3263, allocations: 385.2 kB / 398.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.3266, allocations: 160 kB / 398.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005845/0.3272, allocations: 456.8 kB / 399 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008966/0.3281, allocations: 0.6669 MB / 399.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.912e-06/0.3281, allocations: 2.469 kB / 399.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001231/0.3293, allocations: 0.7424 MB / 400.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.3294, allocations: 9.469 kB / 400.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.3294, allocations: 9.688 kB / 400.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002033/0.3296, allocations: 47.31 kB / 400.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006063/0.3302, allocations: 181.8 kB / 400.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.3317, allocations: 1.698 MB / 402.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.332, allocations: 26.72 kB / 402.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.3321, allocations: 38 kB / 402.4 MB, free: 12.29 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.0003578/0.3324, allocations: 233.1 kB / 402.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.774e-05/0.3325, allocations: 74.28 kB / 402.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.3327, allocations: 76.38 kB / 402.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.3327, allocations: 6.422 kB / 402.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.3327, allocations: 1.75 kB / 402.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.3327, allocations: 2.953 kB / 402.8 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002473/0.3352, allocations: 1.41 MB / 404.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.3352, allocations: 3.406 kB / 404.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.3357, allocations: 112.5 kB / 404.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.739e-05/0.3358, allocations: 21.09 kB / 404.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.58e-05/0.3359, allocations: 14.2 kB / 404.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.3369, allocations: 1.38 MB / 405.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.337, allocations: 6.969 kB / 405.7 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.3381, allocations: 0.7718 MB / 406.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.3383, allocations: 150.4 kB / 406.6 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.08e-05/0.3383, allocations: 15.58 kB / 406.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.3385, allocations: 10.16 kB / 406.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.3386, allocations: 50.83 kB / 406.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.3387, allocations: 18.27 kB / 406.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005115/0.3392, allocations: 359.4 kB / 407.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3392, allocations: 0 / 407.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009863/0.3402, allocations: 142.4 kB / 407.2 MB, free: 8.855 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.0001681/0.3404, allocations: 118.2 kB / 407.3 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.3415, allocations: 0.5855 MB / 407.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3416, allocations: 1.281 kB / 407.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005254/0.3421, allocations: 312.2 kB / 408.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.3428, allocations: 106.6 kB / 408.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.346, allocations: 1.883 MB / 410.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.3467, allocations: 0.9663 MB / 411.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.3469, allocations: 68.2 kB / 411.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3469, allocations: 0 / 411.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of Templates: time 0.02209/0.369, allocations: 12.55 MB / 423.8 MB, free: 13.41 MB / 350.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/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) Reference file matches