Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 199.9 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007186/0.0007186, allocations: 95.44 kB / 299.9 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 4 kB / 360.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1917, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003791/0.1955, allocations: 4.69 MB / 416.7 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.1983, allocations: 4.122 MB / 420.9 MB, free: 16.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005317/0.1989, allocations: 39.75 kB / 420.9 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.1992, allocations: 162.8 kB / 421.1 MB, free: 16.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.1995, allocations: 146.8 kB / 421.2 MB, free: 16.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005794/0.2001, allocations: 331.4 kB / 421.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005943/0.2007, allocations: 0.9622 MB / 422.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005348/0.2012, allocations: 0.5396 MB / 423 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.2015, allocations: 242.9 kB / 423.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.2017, allocations: 278.4 kB / 423.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.827e-05/0.2018, allocations: 32 kB / 423.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.202, allocations: 83.92 kB / 423.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.063e-05/0.2021, allocations: 123.4 kB / 423.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.2023, allocations: 379.7 kB / 424.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006446/0.2029, allocations: 1.076 MB / 425.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2029, allocations: 0 / 425.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.203, allocations: 0 / 425.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.203, allocations: 0 / 425.2 MB, free: 12.18 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.0009236/0.2039, allocations: 0.8737 MB / 426.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.2039, allocations: 12.03 kB / 426.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.2041, allocations: 103.8 kB / 426.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004674/0.2046, allocations: 0.4986 MB / 426.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.2046, allocations: 66.38 kB / 426.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-05/0.2047, allocations: 92.27 kB / 426.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.2058, allocations: 0.8047 MB / 427.7 MB, free: 9.605 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.2059, allocations: 7.906 kB / 427.7 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.2059, allocations: 32 kB / 427.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.206, allocations: 20 kB / 427.7 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007745/0.2067, allocations: 0.4918 MB / 428.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.209, allocations: 2.891 MB / 431.1 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004262/0.2094, allocations: 222.7 kB / 431.3 MB, free: 5.809 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.2096, allocations: 112.8 kB / 431.4 MB, free: 5.695 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.2097, allocations: 247.3 kB / 431.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.467e-05/0.2098, allocations: 38.5 kB / 431.7 MB, free: 5.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.2098, allocations: 0 / 431.7 MB, free: 5.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001834/0.2116, allocations: 1.274 MB / 433 MB, free: 3.984 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.2117, allocations: 55.41 kB / 433 MB, free: 3.918 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.2119, allocations: 308.3 kB / 433.3 MB, free: 3.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.2119, allocations: 33.7 kB / 433.4 MB, free: 3.562 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.212, allocations: 398.5 kB / 433.8 MB, free: 3.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.565e-05/0.2121, allocations: 134.1 kB / 433.9 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.437e-05/0.2121, allocations: 12 kB / 433.9 MB, free: 3.023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.57e-05/0.2122, allocations: 350.7 kB / 434.2 MB, free: 2.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.2123, allocations: 105.1 kB / 434.4 MB, free: 2.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2126, allocations: 250.7 kB / 434.6 MB, free: 2.262 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.2129, allocations: 400.6 kB / 435 MB, free: 1.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.213, allocations: 4 kB / 435 MB, free: 1.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005468/0.2135, allocations: 449.4 kB / 435.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.2135, allocations: 8.594 kB / 435.4 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2135, allocations: 11.94 kB / 435.4 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.2137, allocations: 36.78 kB / 435.5 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/0.214, allocations: 111.8 kB / 435.6 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002275/0.2143, allocations: 0.5563 MB / 436.2 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.2144, allocations: 19.98 kB / 436.2 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.2145, allocations: 24 kB / 436.2 MB, free: 0.5625 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.0001941/0.2147, allocations: 224.5 kB / 436.4 MB, free: 344 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.494e-05/0.2148, allocations: 43.47 kB / 436.5 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005232/0.2153, allocations: 322.2 kB / 436.8 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.2153, allocations: 8 kB / 436.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.2153, allocations: 0 / 436.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2153, allocations: 0 / 436.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.2167, allocations: 1.015 MB / 437.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2167, allocations: 4 kB / 437.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.2171, allocations: 83.89 kB / 437.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.2172, allocations: 32.88 kB / 437.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.2173, allocations: 8 kB / 437.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003002/0.2176, allocations: 0.5525 MB / 438.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.2176, allocations: 4 kB / 438.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006844/0.2183, allocations: 0.5511 MB / 439 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.762e-05/0.2184, allocations: 108.6 kB / 439.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.2184, allocations: 8 kB / 439.1 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.2186, allocations: 15.98 kB / 439.2 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.2186, allocations: 23.97 kB / 439.2 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.2187, allocations: 16.03 kB / 439.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.2189, allocations: 211 kB / 439.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2189, allocations: 0 / 439.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004397/0.2193, allocations: 120 kB / 439.5 MB, free: 13.06 MB / 314.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.0001655/0.2195, allocations: 127.1 kB / 439.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005664/0.2201, allocations: 312.4 kB / 439.9 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2201, allocations: 3.938 kB / 440 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.2203, allocations: 140.3 kB / 440.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.2209, allocations: 69.39 kB / 440.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.2234, allocations: 2.083 MB / 442.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.2238, allocations: 0.9171 MB / 443.2 MB, free: 9.348 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.224, allocations: 51.31 kB / 443.2 MB, free: 9.293 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.738e-05/0.2241, allocations: 31.44 kB / 443.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2241, allocations: 4 kB / 443.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of Templates: time 0.007688/0.2318, allocations: 3.54 MB / 446.8 MB, free: 5.73 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches