Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.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.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009745/0.0009745, allocations: 97.64 kB / 17.3 MB, free: 6.387 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.001015/0.001015, allocations: 176.8 kB / 18.21 MB, free: 5.551 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.563/1.563, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004472/0.0004474, allocations: 19.94 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 47.58 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006077/0.1188, allocations: 4.943 MB / 333.9 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.1225, allocations: 2.045 MB / 335.9 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005692/0.1231, allocations: 31.81 kB / 336 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003933/0.1235, allocations: 162.8 kB / 336.1 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.1238, allocations: 138.9 kB / 336.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007412/0.1246, allocations: 335.4 kB / 336.6 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008721/0.1254, allocations: 0.9508 MB / 337.5 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007253/0.1262, allocations: 0.5358 MB / 338.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/0.1265, allocations: 246.8 kB / 338.3 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003079/0.1268, allocations: 270.4 kB / 338.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.105e-05/0.1269, allocations: 32 kB / 338.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.1271, allocations: 95.91 kB / 338.7 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.1272, allocations: 131.4 kB / 338.8 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.1275, allocations: 367.7 kB / 339.2 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008427/0.1283, allocations: 1.055 MB / 340.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1283, allocations: 4 kB / 340.3 MB, free: 8.375 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1284, allocations: 0 / 340.3 MB, free: 8.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.1284, allocations: 0 / 340.3 MB, free: 8.375 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001237/0.1296, allocations: 0.8853 MB / 341.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.1297, allocations: 8.031 kB / 341.2 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.1298, allocations: 87.91 kB / 341.2 MB, free: 7.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006268/0.1304, allocations: 0.5025 MB / 341.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/0.1305, allocations: 62.38 kB / 341.8 MB, free: 6.742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.1306, allocations: 88.28 kB / 341.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.132, allocations: 0.8164 MB / 342.7 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.132, allocations: 11.89 kB / 342.7 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.946e-05/0.1321, allocations: 40 kB / 342.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.1321, allocations: 20 kB / 342.8 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009371/0.1331, allocations: 0.4918 MB / 343.3 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003398/0.1365, allocations: 2.899 MB / 346.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005829/0.1371, allocations: 222.7 kB / 346.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.1373, allocations: 104.8 kB / 346.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002391/0.1375, allocations: 255.2 kB / 346.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.1375, allocations: 42.55 kB / 346.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.1376, allocations: 0 / 346.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002376/0.1399, allocations: 1.263 MB / 348 MB, free: 168 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.14, allocations: 55.41 kB / 348.1 MB, free: 100 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.1404, allocations: 300.5 kB / 348.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.1404, allocations: 33.7 kB / 348.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.1407, allocations: 406.4 kB / 348.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1408, allocations: 138 kB / 349 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/0.1409, allocations: 37.7 kB / 349 MB, free: 15.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.141, allocations: 362.7 kB / 349.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1412, allocations: 109.1 kB / 349.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/0.1416, allocations: 250.5 kB / 349.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005615/0.1421, allocations: 392.7 kB / 350.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1421, allocations: 0 / 350.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007777/0.1429, allocations: 473 kB / 350.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.143, allocations: 4 kB / 350.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.143, allocations: 8 kB / 350.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/0.1432, allocations: 32.84 kB / 350.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.1436, allocations: 115.8 kB / 350.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004408/0.144, allocations: 0.5644 MB / 351.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.1442, allocations: 16 kB / 351.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.1443, allocations: 24 kB / 351.3 MB, free: 12.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.1446, allocations: 213.7 kB / 351.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.038e-05/0.1447, allocations: 35.53 kB / 351.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006583/0.1453, allocations: 334 kB / 351.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1454, allocations: 4 kB / 351.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1454, allocations: 0 / 351.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.1454, allocations: 0 / 351.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.1468, allocations: 1.018 MB / 352.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1468, allocations: 4 kB / 352.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.1472, allocations: 84.05 kB / 353 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001258/0.1473, allocations: 32.84 kB / 353 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.1474, allocations: 8 kB / 353 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004862/0.1478, allocations: 0.5485 MB / 353.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.587e-06/0.1479, allocations: 15.94 kB / 353.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008379/0.1487, allocations: 0.5515 MB / 354.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.1489, allocations: 108.6 kB / 354.2 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.149, allocations: 11.98 kB / 354.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.1491, allocations: 8 kB / 354.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.1492, allocations: 23.97 kB / 354.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.1493, allocations: 16 kB / 354.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002282/0.1495, allocations: 214.9 kB / 354.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1495, allocations: 0 / 354.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005494/0.15, allocations: 116 kB / 354.6 MB, free: 9.184 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002088/0.1503, allocations: 123.3 kB / 354.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006785/0.1509, allocations: 308.6 kB / 355 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.151, allocations: 0 / 355 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.1512, allocations: 145 kB / 355.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.1519, allocations: 61.41 kB / 355.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.1554, allocations: 2.089 MB / 357.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006713/0.156, allocations: 0.921 MB / 358.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.1562, allocations: 59.2 kB / 358.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.35e-05/0.1563, allocations: 31.44 kB / 358.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of SimCode: time 1.643e-06/0.1563, allocations: 0 / 358.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of Templates: time 0.009267/0.1656, allocations: 3.547 MB / 361.9 MB, free: 1.84 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches