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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 106.4 kB / 17.58 MB, free: 5.562 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.001062/0.001063, allocations: 184.2 kB / 18.5 MB, free: 4.648 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.244/1.244, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001275/0.001275, allocations: 51.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07556/0.07685, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006414/0.08329, allocations: 5.418 MB / 332.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003403/0.08672, allocations: 2.103 MB / 334.9 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007386/0.08751, allocations: 43.75 kB / 334.9 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005227/0.08805, allocations: 202.2 kB / 335.1 MB, free: 12.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.08863, allocations: 166.5 kB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009265/0.08957, allocations: 395 kB / 335.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.09063, allocations: 1.009 MB / 336.7 MB, free: 11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007819/0.09142, allocations: 0.6103 MB / 337.3 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003858/0.09182, allocations: 334.9 kB / 337.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.09223, allocations: 358.4 kB / 338 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.09236, allocations: 92 kB / 338.1 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.09266, allocations: 151.9 kB / 338.2 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.09283, allocations: 199.4 kB / 338.4 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003798/0.09322, allocations: 434 kB / 338.8 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009041/0.09413, allocations: 1.149 MB / 340 MB, free: 7.676 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.09415, allocations: 4 kB / 340 MB, free: 7.672 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09415, allocations: 0 / 340 MB, free: 7.672 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.09419, allocations: 4 kB / 340 MB, free: 7.668 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.001376/0.09557, allocations: 1.022 MB / 341 MB, free: 6.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.09561, allocations: 8.031 kB / 341 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.09574, allocations: 135.5 kB / 341.2 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.09587, allocations: 103.8 kB / 341.3 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.09642, allocations: 0.4947 MB / 341.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.117e-05/0.09647, allocations: 58.38 kB / 341.8 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.09658, allocations: 92.27 kB / 341.9 MB, free: 5.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.09776, allocations: 0.8084 MB / 342.7 MB, free: 4.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.0978, allocations: 3.984 kB / 342.7 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.332e-05/0.09786, allocations: 36 kB / 342.7 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.09789, allocations: 24 kB / 342.8 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008484/0.09874, allocations: 499.6 kB / 343.3 MB, free: 4.273 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.1014, allocations: 2.895 MB / 346.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004781/0.1019, allocations: 222.7 kB / 346.4 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.1021, allocations: 100.8 kB / 346.5 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002454/0.1024, allocations: 255.2 kB / 346.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1024, allocations: 38.56 kB / 346.8 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.955e-06/0.1024, allocations: 4 kB / 346.8 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002059/0.1045, allocations: 1.248 MB / 348 MB, free: 15.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.1045, allocations: 59.41 kB / 348.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.1048, allocations: 308.4 kB / 348.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.1048, allocations: 29.7 kB / 348.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.105, allocations: 394.6 kB / 348.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.685e-05/0.1051, allocations: 138 kB / 348.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1052, allocations: 90.16 kB / 349 MB, free: 14.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1054, allocations: 350.7 kB / 349.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.1056, allocations: 105.1 kB / 349.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.1058, allocations: 262.5 kB / 349.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.1063, allocations: 388.7 kB / 350.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1063, allocations: 4 kB / 350.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006561/0.107, allocations: 456.9 kB / 350.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.107, allocations: 8 kB / 350.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.107, allocations: 4 kB / 350.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001654/0.1072, allocations: 41.42 kB / 350.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.1075, allocations: 111.8 kB / 350.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003493/0.1079, allocations: 0.5562 MB / 351.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.1081, allocations: 16.05 kB / 351.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.046e-05/0.1081, allocations: 19.98 kB / 351.3 MB, free: 11.72 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.000259/0.1084, allocations: 225.8 kB / 351.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-05/0.1085, allocations: 39.47 kB / 351.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00062/0.1091, allocations: 318 kB / 351.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1091, allocations: 4 kB / 351.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1091, allocations: 0 / 351.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.1091, allocations: 3.984 kB / 351.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.1104, allocations: 1.023 MB / 352.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1105, allocations: 4 kB / 352.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003421/0.1108, allocations: 76.06 kB / 353 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.1109, allocations: 40.83 kB / 353 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.111, allocations: 8 kB / 353 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003024/0.1113, allocations: 0.5522 MB / 353.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1113, allocations: 0 / 353.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007035/0.112, allocations: 0.5516 MB / 354.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.167e-05/0.1121, allocations: 104.6 kB / 354.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.1121, allocations: 15.94 kB / 354.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1123, allocations: 12 kB / 354.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.1124, allocations: 23.97 kB / 354.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.1124, allocations: 19.92 kB / 354.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001878/0.1126, allocations: 203.1 kB / 354.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1126, allocations: 0 / 354.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004978/0.1131, allocations: 120 kB / 354.6 MB, free: 8.223 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.001022/0.1141, allocations: 1.1 MB / 355.7 MB, free: 7.078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006504/0.1148, allocations: 316.8 kB / 356 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1148, allocations: 0 / 356 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.115, allocations: 140.1 kB / 356.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.1155, allocations: 85.34 kB / 356.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.121, allocations: 4.409 MB / 360.6 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.1216, allocations: 0.921 MB / 361.6 MB, free: 0.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00015/0.1217, allocations: 47.33 kB / 361.6 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.122, allocations: 247.3 kB / 361.9 MB, free: 0.668 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.122, allocations: 3.938 kB / 361.9 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05393/0.1759, allocations: 8.075 MB / 369.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.15, allocations: 17.7 kB / 370 MB, free: 8.508 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > 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