Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009185/0.0009185, allocations: 94.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009572/0.0009576, allocations: 205.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.7 MB / 247.5 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002265/0.0002266, allocations: 4 kB / 308.4 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 51.53 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004469/0.109, allocations: 4.148 MB / 364.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002526/0.1116, allocations: 1.376 MB / 365.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007069/0.1123, allocations: 23.88 kB / 365.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003826/0.1127, allocations: 130.9 kB / 365.6 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004896/0.1132, allocations: 130.8 kB / 365.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008737/0.1141, allocations: 331.6 kB / 366 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009306/0.115, allocations: 0.9156 MB / 367 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005299/0.1156, allocations: 374.9 kB / 367.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.1159, allocations: 262.6 kB / 367.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.1162, allocations: 290.1 kB / 367.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.537e-05/0.1163, allocations: 24 kB / 367.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002228/0.1165, allocations: 79.91 kB / 368 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1166, allocations: 123.3 kB / 368.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002845/0.1169, allocations: 387.2 kB / 368.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006286/0.1176, allocations: 0.7599 MB / 369.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1176, allocations: 0 / 369.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1176, allocations: 0 / 369.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1176, allocations: 0 / 369.2 MB, free: 3.938 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.001319/0.1189, allocations: 0.9821 MB / 370.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.119, allocations: 12.03 kB / 370.2 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.1192, allocations: 118.7 kB / 370.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007387/0.12, allocations: 0.5993 MB / 370.9 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/0.12, allocations: 58 kB / 371 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.1201, allocations: 83.91 kB / 371.1 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.1214, allocations: 0.8481 MB / 371.9 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.1214, allocations: 11.92 kB / 371.9 MB, free: 1.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.8e-05/0.1215, allocations: 36 kB / 372 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1215, allocations: 23.94 kB / 372 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008352/0.1224, allocations: 475.3 kB / 372.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.183/0.3054, allocations: 4.402 MB / 376.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/0.3061, allocations: 308.8 kB / 377.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.3063, allocations: 143.9 kB / 377.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000173/0.3065, allocations: 170.4 kB / 377.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.3066, allocations: 36.69 kB / 377.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.564e-06/0.3066, allocations: 1.469 kB / 377.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003345/0.3099, allocations: 1.751 MB / 379.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.31, allocations: 63.84 kB / 379.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000564/0.3105, allocations: 0.5377 MB / 379.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3106, allocations: 31.08 kB / 379.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002397/0.3108, allocations: 481 kB / 380.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.3109, allocations: 210.7 kB / 380.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.311, allocations: 70.89 kB / 380.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3111, allocations: 383.1 kB / 381 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.3114, allocations: 165.2 kB / 381.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.3118, allocations: 460.1 kB / 381.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006942/0.3125, allocations: 0.6723 MB / 382.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3125, allocations: 4.016 kB / 382.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001073/0.3136, allocations: 0.7381 MB / 383 MB, free: 11.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.3137, allocations: 9.094 kB / 383 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.3137, allocations: 9.688 kB / 383 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.3139, allocations: 51.73 kB / 383.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.3144, allocations: 185.2 kB / 383.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009794/0.3154, allocations: 1.52 MB / 384.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.3157, allocations: 25.92 kB / 384.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.505e-05/0.3158, allocations: 38.66 kB / 384.9 MB, free: 10.4 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.0002605/0.316, allocations: 232.8 kB / 385.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.074e-05/0.3161, allocations: 70.38 kB / 385.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.3163, allocations: 76.36 kB / 385.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.85e-06/0.3163, allocations: 9.844 kB / 385.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.3163, allocations: 1.312 kB / 385.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.3163, allocations: 6.844 kB / 385.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.3181, allocations: 1.429 MB / 386.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3182, allocations: 3.906 kB / 386.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.3186, allocations: 121.5 kB / 386.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.366e-05/0.3187, allocations: 22.38 kB / 386.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.3188, allocations: 11.05 kB / 386.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006319/0.3194, allocations: 1.278 MB / 388.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3194, allocations: 2.594 kB / 388.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.3205, allocations: 0.7862 MB / 388.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.3206, allocations: 138.2 kB / 389 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.622e-05/0.3207, allocations: 19.88 kB / 389 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.3209, allocations: 18.55 kB / 389.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.819e-05/0.321, allocations: 39.31 kB / 389.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.321, allocations: 18.97 kB / 389.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004194/0.3214, allocations: 364.3 kB / 389.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3214, allocations: 0 / 389.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006698/0.3221, allocations: 137.3 kB / 389.6 MB, free: 7.07 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.0001412/0.3223, allocations: 121.1 kB / 389.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009368/0.3232, allocations: 0.5831 MB / 390.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3232, allocations: 3.609 kB / 390.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003733/0.3236, allocations: 320.7 kB / 390.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007901/0.3244, allocations: 105.2 kB / 390.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.3271, allocations: 2.416 MB / 393.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.3276, allocations: 0.9657 MB / 394.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.3278, allocations: 64.53 kB / 394.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3278, allocations: 0 / 394.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of Templates: time 0.01627/0.3441, allocations: 12.2 MB / 406.4 MB, free: 13.31 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches