Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.001191, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009261/0.000926, allocations: 107 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008971/0.0008971, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1977, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004556/0.2023, allocations: 5.424 MB / 412.5 MB, free: 22.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.205, allocations: 2.079 MB / 414.5 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000547/0.2056, allocations: 35.81 kB / 414.6 MB, free: 20.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003904/0.206, allocations: 162.8 kB / 414.7 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002948/0.2063, allocations: 138.9 kB / 414.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.207, allocations: 347.4 kB / 415.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006105/0.2076, allocations: 0.9702 MB / 416.2 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005655/0.2082, allocations: 0.5552 MB / 416.7 MB, free: 18.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.2084, allocations: 298.8 kB / 417 MB, free: 17.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.2087, allocations: 338.3 kB / 417.4 MB, free: 17.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.613e-05/0.2088, allocations: 52 kB / 417.4 MB, free: 17.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.2089, allocations: 123.9 kB / 417.5 MB, free: 17.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.2091, allocations: 155.4 kB / 417.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002196/0.2093, allocations: 398 kB / 418.1 MB, free: 16.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006/0.2099, allocations: 1.099 MB / 419.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2099, allocations: 3.938 kB / 419.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.2099, allocations: 0 / 419.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2099, allocations: 0 / 419.2 MB, free: 15.62 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.001053/0.211, allocations: 1.03 MB / 420.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.211, allocations: 8.031 kB / 420.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.2112, allocations: 95.89 kB / 420.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.2117, allocations: 0.5025 MB / 420.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.2117, allocations: 66.38 kB / 420.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.186e-05/0.2118, allocations: 88.28 kB / 421 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000981/0.2128, allocations: 0.8086 MB / 421.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.2129, allocations: 4 kB / 421.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.753e-05/0.2129, allocations: 36 kB / 421.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.2129, allocations: 20 kB / 421.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000748/0.2137, allocations: 0.4957 MB / 422.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.2159, allocations: 2.903 MB / 425.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004827/0.2164, allocations: 219.3 kB / 425.4 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.2165, allocations: 108.7 kB / 425.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002056/0.2167, allocations: 255.3 kB / 425.8 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.22e-05/0.2168, allocations: 30.56 kB / 425.8 MB, free: 8.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.2168, allocations: 0 / 425.8 MB, free: 8.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001741/0.2185, allocations: 1.262 MB / 427.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.2185, allocations: 55.41 kB / 427.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.2188, allocations: 308.4 kB / 427.4 MB, free: 6.898 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.2188, allocations: 29.7 kB / 427.5 MB, free: 6.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.2189, allocations: 398.6 kB / 427.9 MB, free: 6.469 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.353e-05/0.219, allocations: 134.1 kB / 428 MB, free: 6.336 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.219, allocations: 90.16 kB / 428.1 MB, free: 6.242 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.356e-05/0.2191, allocations: 358.7 kB / 428.4 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.2193, allocations: 109.1 kB / 428.5 MB, free: 5.777 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.2195, allocations: 246.7 kB / 428.8 MB, free: 5.473 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003668/0.2198, allocations: 392.7 kB / 429.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2199, allocations: 0 / 429.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005765/0.2204, allocations: 457.9 kB / 429.6 MB, free: 4.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2205, allocations: 10.81 kB / 429.6 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2205, allocations: 8.031 kB / 429.6 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.2206, allocations: 32.84 kB / 429.7 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.2209, allocations: 115.8 kB / 429.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000225/0.2212, allocations: 0.5523 MB / 430.3 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.2213, allocations: 19.98 kB / 430.3 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.2214, allocations: 20 kB / 430.4 MB, free: 3.789 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.0001847/0.2216, allocations: 226.2 kB / 430.6 MB, free: 3.562 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.956e-05/0.2216, allocations: 39.53 kB / 430.6 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004699/0.2221, allocations: 326.4 kB / 430.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2221, allocations: 4 kB / 430.9 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2221, allocations: 0 / 430.9 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2221, allocations: 7.938 kB / 431 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009864/0.2231, allocations: 1.011 MB / 432 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2231, allocations: 4.156 kB / 432 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.2234, allocations: 83.89 kB / 432.1 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.991e-05/0.2236, allocations: 28.84 kB / 432.1 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.2236, allocations: 12 kB / 432.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001827/0.2238, allocations: 0.5562 MB / 432.6 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2238, allocations: 3.938 kB / 432.7 MB, free: 1.383 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003723/0.2275, allocations: 3.94 MB / 436.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/0.2276, allocations: 108.6 kB / 436.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/0.2277, allocations: 12 kB / 436.7 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2278, allocations: 8 kB / 436.7 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.2279, allocations: 24.06 kB / 436.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.2279, allocations: 19.98 kB / 436.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002089/0.2281, allocations: 207.1 kB / 437 MB, free: 12.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2281, allocations: 0 / 437 MB, free: 12.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005981/0.2287, allocations: 156.1 kB / 437.1 MB, free: 12.6 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.0001598/0.2289, allocations: 108.8 kB / 437.2 MB, free: 12.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005488/0.2294, allocations: 312.1 kB / 437.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2295, allocations: 4 kB / 437.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.2297, allocations: 144.9 kB / 437.7 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.2302, allocations: 61.72 kB / 437.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/0.2328, allocations: 2.301 MB / 440 MB, free: 9.609 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004295/0.2333, allocations: 0.9288 MB / 441 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.2335, allocations: 50.7 kB / 441 MB, free: 8.602 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.706e-05/0.2335, allocations: 35.44 kB / 441 MB, free: 8.566 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2335, allocations: 3.938 kB / 441.1 MB, free: 8.562 MB / 314.7 MB Notification: Performance of Templates: time 0.008439/0.242, allocations: 4.242 MB / 445.3 MB, free: 4.355 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@2/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