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.001196/0.001196, allocations: 105.3 kB / 17.16 MB, free: 6.34 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.001587/0.001587, allocations: 194 kB / 18.07 MB, free: 5.438 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.558/1.558, allocations: 205.1 MB / 223.9 MB, free: 12.41 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.001156/0.001156, allocations: 52.39 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09395, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007628/0.1016, allocations: 5.402 MB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004383/0.1061, allocations: 2.072 MB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009092/0.1071, allocations: 35.75 kB / 334.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005423/0.1076, allocations: 162.8 kB / 334.3 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000439/0.1081, allocations: 138.8 kB / 334.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.1091, allocations: 339.4 kB / 334.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009364/0.11, allocations: 0.9547 MB / 335.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007267/0.1108, allocations: 0.5513 MB / 336.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.1111, allocations: 290.9 kB / 336.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003866/0.1115, allocations: 338.3 kB / 336.9 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.136e-05/0.1116, allocations: 52 kB / 336.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.1119, allocations: 111.9 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.112, allocations: 159.5 kB / 337.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003394/0.1124, allocations: 394 kB / 337.6 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009153/0.1133, allocations: 1.102 MB / 338.7 MB, free: 8.762 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1133, allocations: 0 / 338.7 MB, free: 8.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1133, allocations: 4 kB / 338.7 MB, free: 8.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.1134, allocations: 0 / 338.7 MB, free: 8.758 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.00141/0.1148, allocations: 1.018 MB / 339.7 MB, free: 7.688 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1148, allocations: 12.03 kB / 339.7 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.115, allocations: 87.91 kB / 339.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000635/0.1156, allocations: 0.5063 MB / 340.3 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.181e-05/0.1157, allocations: 62.38 kB / 340.3 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1158, allocations: 88.28 kB / 340.4 MB, free: 6.898 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.1172, allocations: 0.8087 MB / 341.2 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.1172, allocations: 4 kB / 341.2 MB, free: 6.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.664e-05/0.1173, allocations: 32 kB / 341.3 MB, free: 6.016 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1173, allocations: 24 kB / 341.3 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009119/0.1182, allocations: 0.4957 MB / 341.8 MB, free: 5.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003094/0.1213, allocations: 2.899 MB / 344.7 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005399/0.1219, allocations: 218.6 kB / 344.9 MB, free: 2.246 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.1221, allocations: 104.8 kB / 345 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.1224, allocations: 247.3 kB / 345.2 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1225, allocations: 38.56 kB / 345.3 MB, free: 1.797 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.1225, allocations: 0 / 345.3 MB, free: 1.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002355/0.1248, allocations: 1.254 MB / 346.5 MB, free: 460 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1249, allocations: 59.41 kB / 346.6 MB, free: 388 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.1252, allocations: 304.5 kB / 346.9 MB, free: 68 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.1252, allocations: 33.64 kB / 346.9 MB, free: 28 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.1255, allocations: 398.5 kB / 347.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.1256, allocations: 138 kB / 347.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1258, allocations: 90.16 kB / 347.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1259, allocations: 350.7 kB / 347.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.1261, allocations: 113.1 kB / 348 MB, free: 14.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.1264, allocations: 254.5 kB / 348.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004935/0.1269, allocations: 388.6 kB / 348.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1269, allocations: 0 / 348.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007185/0.1277, allocations: 456.9 kB / 349.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1277, allocations: 8 kB / 349.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1277, allocations: 4.594 kB / 349.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.1279, allocations: 44.78 kB / 349.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.1282, allocations: 103.9 kB / 349.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000453/0.1287, allocations: 0.564 MB / 349.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.1289, allocations: 12 kB / 349.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.1289, allocations: 24.05 kB / 349.8 MB, free: 12.95 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.0002781/0.1292, allocations: 221.8 kB / 350 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.081e-05/0.1293, allocations: 39.53 kB / 350.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005766/0.1299, allocations: 322 kB / 350.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.1299, allocations: 4 kB / 350.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1299, allocations: 0 / 350.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1299, allocations: 0 / 350.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.1313, allocations: 1.025 MB / 351.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.686e-06/0.1313, allocations: 0 / 351.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.1317, allocations: 79.89 kB / 351.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001485/0.1319, allocations: 33 kB / 351.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.1319, allocations: 15.98 kB / 351.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003435/0.1323, allocations: 0.5521 MB / 352.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.882e-06/0.1323, allocations: 8.016 kB / 352.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007604/0.133, allocations: 0.5399 MB / 352.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.993e-05/0.1331, allocations: 108.6 kB / 352.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.1332, allocations: 11.98 kB / 352.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.1333, allocations: 16 kB / 352.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.636e-05/0.1334, allocations: 15.97 kB / 352.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.1334, allocations: 16 kB / 352.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.1337, allocations: 211 kB / 353 MB, free: 9.574 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1337, allocations: 0 / 353 MB, free: 9.574 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005169/0.1342, allocations: 120 kB / 353.1 MB, free: 9.457 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.0002063/0.1344, allocations: 119.3 kB / 353.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006426/0.1351, allocations: 307.6 kB / 353.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1351, allocations: 1.188 kB / 353.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.1353, allocations: 140.1 kB / 353.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.1359, allocations: 76.83 kB / 353.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.1387, allocations: 1.932 MB / 355.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.1393, allocations: 0.9248 MB / 356.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001836/0.1395, allocations: 47.33 kB / 356.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.964e-05/0.1395, allocations: 35.42 kB / 356.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1396, allocations: 0 / 356.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of Templates: time 0.007912/0.1475, allocations: 3.556 MB / 360.3 MB, free: 2.254 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