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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008683/0.0008683, allocations: 102 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007492/0.0007492, allocations: 43.94 kB / 327.2 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1851, allocations: 46.62 MB / 373.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005099/0.1902, allocations: 5.404 MB / 379.2 MB, free: 41.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.1926, allocations: 2.073 MB / 381.3 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003805/0.1931, allocations: 38.19 kB / 381.3 MB, free: 39.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.1934, allocations: 164.7 kB / 381.5 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.1937, allocations: 144.2 kB / 381.6 MB, free: 39.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005905/0.1943, allocations: 329.6 kB / 382 MB, free: 39.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006695/0.1949, allocations: 0.973 MB / 382.9 MB, free: 38.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005536/0.1955, allocations: 0.5402 MB / 383.5 MB, free: 38.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.1957, allocations: 300.4 kB / 383.8 MB, free: 38.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.196, allocations: 334.2 kB / 384.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.064e-05/0.1961, allocations: 51.78 kB / 384.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.1963, allocations: 112.8 kB / 384.2 MB, free: 38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.1964, allocations: 165.4 kB / 384.4 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002638/0.1967, allocations: 387.8 kB / 384.8 MB, free: 37.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006615/0.1974, allocations: 1.095 MB / 385.9 MB, free: 36.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1974, allocations: 1.188 kB / 385.9 MB, free: 36.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1974, allocations: 0 / 385.9 MB, free: 36.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1974, allocations: 0 / 385.9 MB, free: 36.76 MB / 298.7 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.001105/0.1985, allocations: 1.035 MB / 386.9 MB, free: 35.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1985, allocations: 9.531 kB / 386.9 MB, free: 35.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.1987, allocations: 91.16 kB / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/0.1992, allocations: 0.4986 MB / 387.5 MB, free: 35.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.291e-05/0.1992, allocations: 60.09 kB / 387.6 MB, free: 35.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-05/0.1993, allocations: 83.78 kB / 387.7 MB, free: 35.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.2003, allocations: 0.8089 MB / 388.5 MB, free: 34.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.2004, allocations: 3.906 kB / 388.5 MB, free: 34.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.2004, allocations: 36 kB / 388.5 MB, free: 34.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.2005, allocations: 24 kB / 388.5 MB, free: 34.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007206/0.2012, allocations: 0.4918 MB / 389 MB, free: 34.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.2033, allocations: 2.895 MB / 391.9 MB, free: 31.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.2037, allocations: 222.7 kB / 392.1 MB, free: 30.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.2038, allocations: 108.8 kB / 392.2 MB, free: 30.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.204, allocations: 251.3 kB / 392.5 MB, free: 30.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.204, allocations: 38.56 kB / 392.5 MB, free: 30.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.343e-06/0.204, allocations: 0 / 392.5 MB, free: 30.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001667/0.2057, allocations: 1.258 MB / 393.8 MB, free: 29.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.051e-05/0.2057, allocations: 59.34 kB / 393.8 MB, free: 29.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.2059, allocations: 300.5 kB / 394.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.206, allocations: 29.7 kB / 394.2 MB, free: 28.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.2061, allocations: 402.5 kB / 394.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.2061, allocations: 138 kB / 394.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.006e-05/0.2062, allocations: 86.16 kB / 394.8 MB, free: 28.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/0.2063, allocations: 354.7 kB / 395.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.2064, allocations: 109.1 kB / 395.2 MB, free: 27.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.2066, allocations: 254.5 kB / 395.5 MB, free: 27.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.207, allocations: 384.6 kB / 395.8 MB, free: 26.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.207, allocations: 4 kB / 395.8 MB, free: 26.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005077/0.2075, allocations: 456.9 kB / 396.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.2076, allocations: 8.594 kB / 396.3 MB, free: 26.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.2076, allocations: 11.98 kB / 396.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000142/0.2077, allocations: 40.78 kB / 396.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.208, allocations: 107.8 kB / 396.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002208/0.2082, allocations: 0.5524 MB / 397 MB, free: 25.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.2084, allocations: 19.98 kB / 397 MB, free: 25.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.2084, allocations: 20 kB / 397.1 MB, free: 25.59 MB / 298.7 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.0001711/0.2086, allocations: 225.7 kB / 397.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.2087, allocations: 35.53 kB / 397.3 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004501/0.2091, allocations: 325.6 kB / 397.6 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2091, allocations: 4 kB / 397.6 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2091, allocations: 0 / 397.6 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2091, allocations: 4 kB / 397.6 MB, free: 24.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009622/0.2101, allocations: 1.026 MB / 398.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2101, allocations: 4.156 kB / 398.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003006/0.2104, allocations: 83.89 kB / 398.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.393e-05/0.2105, allocations: 28.84 kB / 398.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.2106, allocations: 8 kB / 398.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001932/0.2108, allocations: 0.5484 MB / 399.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2108, allocations: 4.031 kB / 399.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.2138, allocations: 3.951 MB / 403.3 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.674e-05/0.2139, allocations: 108.6 kB / 403.4 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.2139, allocations: 8.188 kB / 403.4 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.214, allocations: 8 kB / 403.4 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.2141, allocations: 40.03 kB / 403.4 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.2141, allocations: 11.98 kB / 403.5 MB, free: 18.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001309/0.2143, allocations: 207.1 kB / 403.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2143, allocations: 3.938 kB / 403.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004986/0.2148, allocations: 160 kB / 403.8 MB, free: 18.38 MB / 298.7 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.0001136/0.2149, allocations: 115.2 kB / 403.9 MB, free: 18.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004407/0.2153, allocations: 303.5 kB / 404.2 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2154, allocations: 0 / 404.2 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.2156, allocations: 142.2 kB / 404.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.216, allocations: 69.66 kB / 404.4 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.218, allocations: 2.3 MB / 406.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.2182, allocations: 0.9288 MB / 407.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.2184, allocations: 51.31 kB / 407.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.671e-05/0.2184, allocations: 35.44 kB / 407.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2184, allocations: 0 / 407.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of Templates: time 0.006588/0.225, allocations: 4.239 MB / 412 MB, free: 10.12 MB / 298.7 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@2/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