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.0012/0.0012, allocations: 95.45 kB / 16.93 MB, free: 5.98 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.001425/0.001426, allocations: 180.3 kB / 17.82 MB, free: 5.652 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.367/1.367, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004851/0.0004854, allocations: 19.27 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.112, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005353/0.1174, allocations: 4.388 MB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004086/0.1215, allocations: 2.004 MB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009786/0.1226, allocations: 35.81 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005923/0.1232, allocations: 158.8 kB / 334.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.1244, allocations: 307 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.1258, allocations: 347.4 kB / 335.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.1272, allocations: 0.6633 MB / 336.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008057/0.128, allocations: 413.5 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004993/0.1285, allocations: 227 kB / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004958/0.129, allocations: 262.6 kB / 337.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.966e-05/0.1291, allocations: 35.94 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.1294, allocations: 71.91 kB / 337.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.1295, allocations: 119.5 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.1298, allocations: 173.3 kB / 337.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008689/0.1306, allocations: 0.8806 MB / 338.4 MB, free: 9.992 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1306, allocations: 0 / 338.4 MB, free: 9.992 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1307, allocations: 0 / 338.4 MB, free: 9.992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.1307, allocations: 0 / 338.4 MB, free: 9.992 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.001325/0.132, allocations: 0.8968 MB / 339.3 MB, free: 9.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1321, allocations: 8.031 kB / 339.3 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1322, allocations: 86.97 kB / 339.3 MB, free: 8.949 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006664/0.1329, allocations: 0.4897 MB / 339.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.921e-05/0.1329, allocations: 62 kB / 339.9 MB, free: 8.355 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.1331, allocations: 91.98 kB / 340 MB, free: 8.266 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.1343, allocations: 0.7888 MB / 340.8 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.1344, allocations: 15.91 kB / 340.8 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.1344, allocations: 32 kB / 340.8 MB, free: 7.391 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.1345, allocations: 20 kB / 340.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009001/0.1354, allocations: 499.6 kB / 341.3 MB, free: 6.887 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.1387, allocations: 2.911 MB / 344.2 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.1392, allocations: 223.2 kB / 344.5 MB, free: 3.621 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002338/0.1395, allocations: 251.3 kB / 344.7 MB, free: 3.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.1395, allocations: 34.5 kB / 344.7 MB, free: 3.277 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.1395, allocations: 7.938 kB / 344.7 MB, free: 3.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002337/0.1419, allocations: 1.267 MB / 346 MB, free: 1.906 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.1419, allocations: 55.41 kB / 346.1 MB, free: 1.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.1423, allocations: 300.5 kB / 346.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1423, allocations: 29.7 kB / 346.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.1425, allocations: 394.5 kB / 346.8 MB, free: 1.113 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.667e-05/0.1426, allocations: 134.1 kB / 346.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.639e-05/0.1427, allocations: 12 kB / 346.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1428, allocations: 354.8 kB / 347.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.143, allocations: 105.1 kB / 347.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.1433, allocations: 254.5 kB / 347.6 MB, free: 212 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1435, allocations: 147.7 kB / 347.8 MB, free: 64 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1435, allocations: 11.92 kB / 347.8 MB, free: 52 kB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006804/0.1442, allocations: 461.5 kB / 348.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1442, allocations: 4 kB / 348.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.1443, allocations: 8 kB / 348.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001895/0.1445, allocations: 36.83 kB / 348.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.1448, allocations: 111.8 kB / 348.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003684/0.1452, allocations: 0.5486 MB / 348.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.1454, allocations: 20.06 kB / 348.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.1454, allocations: 24 kB / 349 MB, free: 14.81 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002725/0.1457, allocations: 225.6 kB / 349.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.1458, allocations: 35.53 kB / 349.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006152/0.1464, allocations: 322.1 kB / 349.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.1464, allocations: 4 kB / 349.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.1464, allocations: 0 / 349.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1464, allocations: 3.984 kB / 349.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.1479, allocations: 1.034 MB / 350.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1479, allocations: 3.953 kB / 350.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.1482, allocations: 75.91 kB / 350.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.1484, allocations: 36.83 kB / 350.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.1484, allocations: 16.16 kB / 350.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000313/0.1487, allocations: 0.5446 MB / 351.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1487, allocations: 0 / 351.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/0.1495, allocations: 0.6149 MB / 351.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.277e-05/0.1496, allocations: 108.7 kB / 352 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.1496, allocations: 12 kB / 352 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.1498, allocations: 8 kB / 352 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.84e-05/0.1499, allocations: 28 kB / 352 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.1499, allocations: 15.98 kB / 352 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002183/0.1501, allocations: 215 kB / 352.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1501, allocations: 0 / 352.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.1506, allocations: 116 kB / 352.4 MB, free: 11.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001677/0.1508, allocations: 119.2 kB / 352.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005646/0.1514, allocations: 316.4 kB / 352.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1514, allocations: 0 / 352.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.1516, allocations: 141.1 kB / 352.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.152, allocations: 54.09 kB / 353 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.1546, allocations: 2.003 MB / 355 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004801/0.1551, allocations: 0.9404 MB / 355.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.1552, allocations: 51.33 kB / 356 MB, free: 7.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.56e-05/0.1553, allocations: 31.44 kB / 356 MB, free: 7.484 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1553, allocations: 0 / 356 MB, free: 7.484 MB / 302.1 MB Notification: Performance of Templates: time 0.007661/0.163, allocations: 3.449 MB / 359.5 MB, free: 4.043 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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