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.001911/0.001911, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.001955/0.001955, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.784/2.784, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002176/0.002177, allocations: 56.3 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1607, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01314/0.174, allocations: 5.414 MB / 332.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007842/0.1819, allocations: 2.111 MB / 334.9 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001836/0.1838, allocations: 39.75 kB / 334.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000972/0.1849, allocations: 198.3 kB / 335.1 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.186, allocations: 174.4 kB / 335.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00186/0.1878, allocations: 399 kB / 335.7 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.1901, allocations: 1.002 MB / 336.7 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00149/0.1916, allocations: 0.6065 MB / 337.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008887/0.1925, allocations: 330.9 kB / 337.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008235/0.1933, allocations: 362.4 kB / 338 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.1935, allocations: 92 kB / 338.1 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007295/0.1943, allocations: 151.9 kB / 338.2 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003359/0.1946, allocations: 203.4 kB / 338.4 MB, free: 9.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007503/0.1954, allocations: 430 kB / 338.8 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002262/0.1977, allocations: 1.145 MB / 340 MB, free: 7.699 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.232e-05/0.1977, allocations: 4 kB / 340 MB, free: 7.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1977, allocations: 4 kB / 340 MB, free: 7.691 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.227e-05/0.1978, allocations: 0 / 340 MB, free: 7.691 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.002542/0.2003, allocations: 1.03 MB / 341 MB, free: 6.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.939e-05/0.2004, allocations: 8.031 kB / 341 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002217/0.2006, allocations: 135.5 kB / 341.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.2009, allocations: 91.81 kB / 341.2 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009805/0.2019, allocations: 0.5025 MB / 341.8 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.976e-05/0.202, allocations: 62.38 kB / 341.8 MB, free: 5.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.2021, allocations: 88.28 kB / 341.9 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001929/0.2041, allocations: 0.8084 MB / 342.7 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.248e-05/0.2041, allocations: 8 kB / 342.7 MB, free: 4.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-05/0.2042, allocations: 36 kB / 342.7 MB, free: 4.797 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.619e-05/0.2043, allocations: 20 kB / 342.8 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.2057, allocations: 0.4918 MB / 343.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005169/0.2109, allocations: 2.891 MB / 346.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009005/0.2118, allocations: 226.6 kB / 346.4 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/0.2121, allocations: 108.8 kB / 346.5 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005047/0.2126, allocations: 243.3 kB / 346.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.682e-05/0.2127, allocations: 38.56 kB / 346.8 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 3.727e-06/0.2127, allocations: 7.875 kB / 346.8 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.003809/0.2165, allocations: 1.248 MB / 348 MB, free: 15.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.602e-05/0.2166, allocations: 59.41 kB / 348.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.2172, allocations: 308.4 kB / 348.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.2172, allocations: 33.7 kB / 348.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003888/0.2176, allocations: 394.6 kB / 348.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.2178, allocations: 134 kB / 348.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.218, allocations: 86.16 kB / 349 MB, free: 14.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.2182, allocations: 350.7 kB / 349.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.2186, allocations: 105.1 kB / 349.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/0.219, allocations: 258.5 kB / 349.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.2199, allocations: 388.7 kB / 350.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.2199, allocations: 4 kB / 350.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001088/0.221, allocations: 460.9 kB / 350.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.221, allocations: 8 kB / 350.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.221, allocations: 4 kB / 350.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003015/0.2213, allocations: 41.44 kB / 350.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.2219, allocations: 111.8 kB / 350.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006573/0.2226, allocations: 0.5601 MB / 351.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.2229, allocations: 19.98 kB / 351.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.662e-05/0.2229, allocations: 24 kB / 351.3 MB, free: 11.73 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.0005077/0.2235, allocations: 213.7 kB / 351.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.574e-05/0.2236, allocations: 43.53 kB / 351.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008914/0.2245, allocations: 318 kB / 351.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.2245, allocations: 4 kB / 351.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.2245, allocations: 0 / 351.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.2245, allocations: 0 / 351.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.2266, allocations: 1.027 MB / 352.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2266, allocations: 0 / 352.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005282/0.2272, allocations: 83.89 kB / 353 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002186/0.2274, allocations: 33 kB / 353 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/0.2275, allocations: 8 kB / 353 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004786/0.228, allocations: 0.5522 MB / 353.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.228, allocations: 0 / 353.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.2291, allocations: 0.5516 MB / 354.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.2292, allocations: 116.6 kB / 354.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.87e-05/0.2293, allocations: 8 kB / 354.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.2296, allocations: 11.98 kB / 354.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.553e-05/0.2297, allocations: 23.97 kB / 354.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.59e-05/0.2297, allocations: 15.94 kB / 354.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003352/0.23, allocations: 207.1 kB / 354.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2301, allocations: 0 / 354.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009159/0.231, allocations: 120 kB / 354.6 MB, free: 8.238 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.001802/0.2328, allocations: 1.1 MB / 355.7 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.2338, allocations: 315.7 kB / 356 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.2338, allocations: 1.188 kB / 356 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.2342, allocations: 144.1 kB / 356.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00079/0.235, allocations: 81.36 kB / 356.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009296/0.2443, allocations: 4.412 MB / 360.7 MB, free: 1.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007743/0.2452, allocations: 0.9249 MB / 361.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002807/0.2455, allocations: 47.33 kB / 361.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/0.2459, allocations: 247.3 kB / 361.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2459, allocations: 0 / 361.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05103/0.2969, allocations: 8.068 MB / 369.9 MB, free: 8.543 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.49/18.79, allocations: 17.77 kB / 369.9 MB, free: 8.527 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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