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.001405/0.001405, allocations: 109.9 kB / 18.25 MB, free: 4.785 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.001447/0.001447, allocations: 195.6 kB / 19.18 MB, free: 3.867 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.417/1.417, allocations: 205.1 MB / 225 MB, free: 12.31 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.001344/0.001345, allocations: 47.94 kB / 281.3 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.09, allocations: 46.63 MB / 327.9 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006534/0.09658, allocations: 4.553 MB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002972/0.09961, allocations: 1.373 MB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008703/0.1006, allocations: 19.88 kB / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006392/0.1012, allocations: 182.2 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007572/0.102, allocations: 166.3 kB / 334.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.1031, allocations: 359.5 kB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001379/0.1045, allocations: 0.9822 MB / 335.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007115/0.1052, allocations: 415.1 kB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005364/0.1058, allocations: 326.6 kB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005043/0.1063, allocations: 357.9 kB / 336.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.1065, allocations: 72 kB / 336.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000314/0.1068, allocations: 108 kB / 336.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.107, allocations: 171.3 kB / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004641/0.1074, allocations: 433.5 kB / 337.4 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.1086, allocations: 1.043 MB / 338.4 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.1086, allocations: 0 / 338.4 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1086, allocations: 0 / 338.4 MB, free: 9.898 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.868e-05/0.1087, allocations: 0 / 338.4 MB, free: 9.898 MB / 286.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.002047/0.1108, allocations: 1.153 MB / 339.6 MB, free: 8.695 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1108, allocations: 8.031 kB / 339.6 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.111, allocations: 106.7 kB / 339.7 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008401/0.1118, allocations: 0.5955 MB / 340.3 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.766e-05/0.1119, allocations: 58 kB / 340.4 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.112, allocations: 83.94 kB / 340.4 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1134, allocations: 0.8442 MB / 341.3 MB, free: 6.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.565e-05/0.1135, allocations: 15.84 kB / 341.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.1136, allocations: 32 kB / 341.3 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.1136, allocations: 20 kB / 341.4 MB, free: 6.789 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009565/0.1145, allocations: 475.3 kB / 341.8 MB, free: 6.324 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.1185, allocations: 4.4 MB / 346.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.1192, allocations: 314.9 kB / 346.5 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.1195, allocations: 141.6 kB / 346.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002836/0.1197, allocations: 170.6 kB / 346.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1198, allocations: 42.88 kB / 346.9 MB, free: 1.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.315e-06/0.1198, allocations: 0 / 346.9 MB, free: 1.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003464/0.1233, allocations: 1.732 MB / 348.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.1233, allocations: 67.89 kB / 348.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000626/0.124, allocations: 0.5352 MB / 349.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.124, allocations: 33.7 kB / 349.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.1243, allocations: 482.3 kB / 349.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.1245, allocations: 209 kB / 349.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.1247, allocations: 146.5 kB / 350.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1248, allocations: 378.8 kB / 350.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.1251, allocations: 161.9 kB / 350.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.1256, allocations: 455.2 kB / 351 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000825/0.1264, allocations: 0.6595 MB / 351.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.1264, allocations: 4 kB / 351.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001187/0.1276, allocations: 0.7375 MB / 352.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.1277, allocations: 13 kB / 352.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.1277, allocations: 11.94 kB / 352.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.1279, allocations: 52.84 kB / 352.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/0.1285, allocations: 183.7 kB / 352.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.1299, allocations: 1.689 MB / 354.4 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.1303, allocations: 28 kB / 354.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.1303, allocations: 36 kB / 354.4 MB, free: 8.887 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.0003455/0.1307, allocations: 237.6 kB / 354.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.1308, allocations: 71.09 kB / 354.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.131, allocations: 79.06 kB / 354.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.131, allocations: 4 kB / 354.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.131, allocations: 0 / 354.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.131, allocations: 0 / 354.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.1331, allocations: 1.431 MB / 356.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.1331, allocations: 4 kB / 356.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/0.1336, allocations: 111.9 kB / 356.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.1337, allocations: 28.84 kB / 356.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.231e-05/0.1338, allocations: 20.34 kB / 356.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000936/0.1347, allocations: 1.367 MB / 357.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.1348, allocations: 4 kB / 357.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1358, allocations: 0.7761 MB / 358.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.1359, allocations: 136.2 kB / 358.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/0.136, allocations: 16 kB / 358.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.1363, allocations: 15.98 kB / 358.7 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/0.1363, allocations: 43.92 kB / 358.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.1364, allocations: 16.19 kB / 358.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004127/0.1368, allocations: 367.1 kB / 359.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1368, allocations: 3.938 kB / 359.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006845/0.1375, allocations: 140 kB / 359.3 MB, free: 3.719 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.0001425/0.1376, allocations: 115.1 kB / 359.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.1388, allocations: 0.6031 MB / 360 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.1389, allocations: 5.5 kB / 360 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003956/0.1393, allocations: 318.7 kB / 360.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.1399, allocations: 99.11 kB / 360.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.1429, allocations: 1.903 MB / 362.3 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005895/0.1435, allocations: 0.9652 MB / 363.3 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.1437, allocations: 63.42 kB / 363.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1437, allocations: 0 / 363.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of Templates: time 0.01717/0.1609, allocations: 12.33 MB / 375.7 MB, free: 3.18 MB / 318.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