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.001063/0.001063, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.0009967/0.0009969, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.392/1.392, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001399/0.001399, allocations: 47.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08627/0.08768, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006701/0.0944, allocations: 5.41 MB / 334.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.09857, allocations: 2.115 MB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009253/0.09952, allocations: 35.81 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006275/0.1002, allocations: 202.2 kB / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006622/0.1009, allocations: 170.4 kB / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1021, allocations: 403 kB / 337 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.1035, allocations: 1.002 MB / 338 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009031/0.1044, allocations: 0.6026 MB / 338.6 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004801/0.1049, allocations: 346.7 kB / 339 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005263/0.1055, allocations: 362.4 kB / 339.3 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.1056, allocations: 96 kB / 339.4 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003037/0.1059, allocations: 147.9 kB / 339.6 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.1061, allocations: 207.4 kB / 339.8 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004709/0.1066, allocations: 430 kB / 340.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.1077, allocations: 1.164 MB / 341.4 MB, free: 7.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1077, allocations: 4 kB / 341.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1077, allocations: 0 / 341.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.081e-05/0.1078, allocations: 0 / 341.4 MB, free: 7.02 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.002107/0.1099, allocations: 1.033 MB / 342.4 MB, free: 5.934 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1099, allocations: 8.031 kB / 342.4 MB, free: 5.926 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.1101, allocations: 87.91 kB / 342.5 MB, free: 5.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008438/0.1109, allocations: 0.5258 MB / 343 MB, free: 5.277 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.492e-05/0.111, allocations: 66.31 kB / 343.1 MB, free: 5.215 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.1111, allocations: 88.28 kB / 343.2 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1125, allocations: 0.8125 MB / 344 MB, free: 4.277 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.1125, allocations: 0 / 344 MB, free: 4.277 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.937e-05/0.1126, allocations: 36 kB / 344 MB, free: 4.242 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.1126, allocations: 24 kB / 344 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009461/0.1136, allocations: 0.4918 MB / 344.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.1164, allocations: 2.856 MB / 347.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.117, allocations: 222.7 kB / 347.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.1172, allocations: 108.7 kB / 347.7 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002008/0.1174, allocations: 251.3 kB / 348 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1174, allocations: 34.56 kB / 348 MB, free: 64 kB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.1174, allocations: 0 / 348 MB, free: 64 kB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002357/0.1198, allocations: 1.256 MB / 349.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.1198, allocations: 51.41 kB / 349.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.1202, allocations: 308.5 kB / 349.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.1202, allocations: 29.7 kB / 349.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/0.1204, allocations: 398.6 kB / 350 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.1205, allocations: 134 kB / 350.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1206, allocations: 90.16 kB / 350.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1207, allocations: 354.7 kB / 350.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.1209, allocations: 105.1 kB / 350.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.1212, allocations: 254.7 kB / 350.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.1217, allocations: 384.7 kB / 351.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1217, allocations: 4 kB / 351.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006651/0.1224, allocations: 461.4 kB / 351.8 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1224, allocations: 12.09 kB / 351.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.1225, allocations: 4 kB / 351.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.1226, allocations: 36.84 kB / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.123, allocations: 107.8 kB / 351.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003771/0.1234, allocations: 0.5523 MB / 352.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.1236, allocations: 19.98 kB / 352.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.1236, allocations: 24 kB / 352.5 MB, free: 11.22 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.0002662/0.1239, allocations: 217.8 kB / 352.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.884e-05/0.124, allocations: 35.53 kB / 352.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005734/0.1245, allocations: 326 kB / 353.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1246, allocations: 7.938 kB / 353.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1246, allocations: 0 / 353.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.1246, allocations: 8.031 kB / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.126, allocations: 1.02 MB / 354.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.126, allocations: 4 kB / 354.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.1263, allocations: 84.05 kB / 354.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.1265, allocations: 32.84 kB / 354.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.1265, allocations: 12 kB / 354.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002951/0.1268, allocations: 0.5484 MB / 354.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1268, allocations: 3.938 kB / 354.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006946/0.1275, allocations: 0.5488 MB / 355.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.1276, allocations: 104.6 kB / 355.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.429e-05/0.1277, allocations: 8 kB / 355.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.1278, allocations: 15.98 kB / 355.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.1279, allocations: 23.97 kB / 355.5 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.1279, allocations: 16 kB / 355.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.1281, allocations: 215 kB / 355.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1281, allocations: 0 / 355.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004785/0.1286, allocations: 116 kB / 355.8 MB, free: 7.719 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.0001612/0.1288, allocations: 131.2 kB / 356 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005612/0.1293, allocations: 307.4 kB / 356.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1294, allocations: 1.188 kB / 356.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.1296, allocations: 144.1 kB / 356.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.1301, allocations: 57.41 kB / 356.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002121/0.1322, allocations: 1.573 MB / 358 MB, free: 5.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.1327, allocations: 0.9249 MB / 359 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.1328, allocations: 55.31 kB / 359 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.521e-05/0.1329, allocations: 27.44 kB / 359 MB, free: 4.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1329, allocations: 0 / 359 MB, free: 4.43 MB / 302.1 MB Notification: Performance of Templates: time 0.007967/0.1409, allocations: 3.749 MB / 362.8 MB, free: 0.6836 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches