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.001787/0.001787, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001632/0.001632, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 68.03 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1085, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006587/0.1151, allocations: 4.585 MB / 362.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003058/0.1182, allocations: 1.407 MB / 364.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004672/0.1187, allocations: 23.81 kB / 364.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004394/0.1192, allocations: 178.2 kB / 364.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.1196, allocations: 166.3 kB / 364.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008882/0.1205, allocations: 371.5 kB / 364.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1216, allocations: 0.9743 MB / 365.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006218/0.1222, allocations: 426.9 kB / 366.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004758/0.1227, allocations: 322.6 kB / 366.6 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004036/0.1231, allocations: 346 kB / 366.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1232, allocations: 75.94 kB / 367 MB, free: 5.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.1235, allocations: 120 kB / 367.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.1237, allocations: 179.2 kB / 367.3 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003857/0.1241, allocations: 429.5 kB / 367.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.1252, allocations: 1.059 MB / 368.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1252, allocations: 0 / 368.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1252, allocations: 0 / 368.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.1253, allocations: 0 / 368.8 MB, free: 3.434 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.001661/0.1269, allocations: 1.146 MB / 369.9 MB, free: 2.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.127, allocations: 8.031 kB / 369.9 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.1272, allocations: 114.7 kB / 370 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008502/0.1281, allocations: 0.5915 MB / 370.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.1282, allocations: 62 kB / 370.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.1283, allocations: 83.98 kB / 370.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1297, allocations: 0.8442 MB / 371.6 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/0.1297, allocations: 19.83 kB / 371.6 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.952e-05/0.1298, allocations: 32 kB / 371.7 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.1298, allocations: 24 kB / 371.7 MB, free: 316 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1717/0.3016, allocations: 464.2 kB / 372.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003486/0.3051, allocations: 4.399 MB / 376.5 MB, free: 16.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005974/0.3057, allocations: 310.2 kB / 376.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002402/0.306, allocations: 142.4 kB / 377 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002145/0.3062, allocations: 167.2 kB / 377.2 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3062, allocations: 37.47 kB / 377.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.314e-06/0.3062, allocations: 0 / 377.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003196/0.3094, allocations: 1.738 MB / 378.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.3095, allocations: 58.19 kB / 379 MB, free: 15.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.31, allocations: 0.5369 MB / 379.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.3101, allocations: 36.45 kB / 379.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.3103, allocations: 481.8 kB / 380 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3104, allocations: 210.9 kB / 380.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3106, allocations: 139.4 kB / 380.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.403e-05/0.3107, allocations: 383.5 kB / 380.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/0.311, allocations: 160.9 kB / 380.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/0.3113, allocations: 459.8 kB / 381.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007063/0.3121, allocations: 0.6634 MB / 382 MB, free: 12.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3121, allocations: 2.312 kB / 382 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001134/0.3132, allocations: 0.738 MB / 382.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.3133, allocations: 12.08 kB / 382.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.3133, allocations: 14.28 kB / 382.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001829/0.3135, allocations: 48.41 kB / 382.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.314, allocations: 181.3 kB / 383 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009898/0.315, allocations: 1.69 MB / 384.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.3154, allocations: 30.39 kB / 384.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.3154, allocations: 39.58 kB / 384.8 MB, free: 10.71 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.0002756/0.3157, allocations: 228.2 kB / 385 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.985e-05/0.3158, allocations: 73.53 kB / 385.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.3159, allocations: 82.73 kB / 385.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3159, allocations: 8.203 kB / 385.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.316, allocations: 1.75 kB / 385.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.316, allocations: 6.766 kB / 385.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.3179, allocations: 1.411 MB / 386.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3179, allocations: 2.828 kB / 386.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.3184, allocations: 121.7 kB / 386.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-05/0.3185, allocations: 23.05 kB / 386.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-05/0.3185, allocations: 15.83 kB / 386.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006212/0.3191, allocations: 1.372 MB / 388.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/0.3191, allocations: 11.34 kB / 388.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009285/0.3201, allocations: 0.7743 MB / 388.9 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.3202, allocations: 138.2 kB / 389 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.3203, allocations: 18.94 kB / 389 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.3205, allocations: 10.11 kB / 389 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.366e-05/0.3206, allocations: 43.88 kB / 389.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3206, allocations: 18.45 kB / 389.1 MB, free: 7.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004081/0.321, allocations: 360.8 kB / 389.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.321, allocations: 0 / 389.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007115/0.3217, allocations: 141.6 kB / 389.6 MB, free: 7.277 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.000131/0.3219, allocations: 124.2 kB / 389.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.323, allocations: 0.6175 MB / 390.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.323, allocations: 0 / 390.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003679/0.3234, allocations: 305.8 kB / 390.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006334/0.324, allocations: 93.39 kB / 390.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.3266, allocations: 1.913 MB / 392.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.3271, allocations: 0.9646 MB / 393.6 MB, free: 4.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.3273, allocations: 65.03 kB / 393.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3273, allocations: 0 / 393.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of Templates: time 0.01758/0.3449, allocations: 12.37 MB / 406 MB, free: 13.68 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.1.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