Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 194.3 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 226.5 MB / 244.3 MB, free: 6.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007224/0.0007225, allocations: 107.4 kB / 296.4 MB, free: 6.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002137/0.0002137, allocations: 11.98 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1886, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003493/0.1921, allocations: 4.677 MB / 412.2 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1941, allocations: 1.955 MB / 414.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003146/0.1944, allocations: 31.81 kB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.1947, allocations: 154.8 kB / 414.3 MB, free: 20.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.1949, allocations: 142.9 kB / 414.4 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1954, allocations: 251.4 kB / 414.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.1959, allocations: 0.9072 MB / 415.6 MB, free: 19.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004427/0.1963, allocations: 417.5 kB / 416 MB, free: 19.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.1965, allocations: 231 kB / 416.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.1967, allocations: 266.6 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.936e-05/0.1968, allocations: 36 kB / 416.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.197, allocations: 87.91 kB / 416.6 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.197, allocations: 119.5 kB / 416.7 MB, free: 18.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.477e-05/0.1971, allocations: 173.3 kB / 416.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.1976, allocations: 0.8813 MB / 417.8 MB, free: 17.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1977, allocations: 4 kB / 417.8 MB, free: 17.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1977, allocations: 0 / 417.8 MB, free: 17.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1977, allocations: 0 / 417.8 MB, free: 17.46 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.0009267/0.1986, allocations: 0.8968 MB / 418.7 MB, free: 16.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.1986, allocations: 8.031 kB / 418.7 MB, free: 16.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.1988, allocations: 94.97 kB / 418.8 MB, free: 16.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.1993, allocations: 497.5 kB / 419.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.1993, allocations: 69.95 kB / 419.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.031e-05/0.1994, allocations: 88 kB / 419.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.2005, allocations: 0.7966 MB / 420.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.2005, allocations: 19.83 kB / 420.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.2006, allocations: 32 kB / 420.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.2006, allocations: 23.94 kB / 420.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007396/0.2013, allocations: 0.4918 MB / 420.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.2035, allocations: 2.903 MB / 423.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.204, allocations: 215.3 kB / 423.9 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.2041, allocations: 100.8 kB / 424 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.2044, allocations: 251.3 kB / 424.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.2044, allocations: 42.48 kB / 424.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.2044, allocations: 0 / 424.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001887/0.2063, allocations: 1.265 MB / 425.5 MB, free: 9.266 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.2063, allocations: 55.41 kB / 425.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.2065, allocations: 300.4 kB / 425.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.2066, allocations: 33.7 kB / 425.9 MB, free: 8.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.2067, allocations: 394.6 kB / 426.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.982e-05/0.2068, allocations: 138 kB / 426.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.435e-05/0.2068, allocations: 12 kB / 426.5 MB, free: 8.324 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.431e-05/0.2069, allocations: 346.8 kB / 426.8 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.207, allocations: 105.1 kB / 426.9 MB, free: 7.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.2072, allocations: 256.9 kB / 427.2 MB, free: 7.562 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.2075, allocations: 155.7 kB / 427.3 MB, free: 7.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2075, allocations: 4 kB / 427.3 MB, free: 7.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005255/0.208, allocations: 453.2 kB / 427.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.208, allocations: 11.98 kB / 427.8 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.208, allocations: 7.953 kB / 427.8 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.2082, allocations: 32.84 kB / 427.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.2085, allocations: 111.8 kB / 427.9 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002434/0.2087, allocations: 0.5568 MB / 428.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.2089, allocations: 19.98 kB / 428.5 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.209, allocations: 23.98 kB / 428.5 MB, free: 6.164 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.2092, allocations: 221.6 kB / 428.7 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.75e-05/0.2092, allocations: 43.52 kB / 428.8 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004641/0.2097, allocations: 323.7 kB / 429.1 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.2097, allocations: 4 kB / 429.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2097, allocations: 0 / 429.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2097, allocations: 0 / 429.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009726/0.2107, allocations: 1.018 MB / 430.1 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2107, allocations: 8 kB / 430.1 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/0.211, allocations: 83.98 kB / 430.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.655e-05/0.2111, allocations: 40.78 kB / 430.2 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.2112, allocations: 11.95 kB / 430.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001768/0.2114, allocations: 0.5407 MB / 430.8 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2114, allocations: 4.031 kB / 430.8 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000536/0.2119, allocations: 0.5517 MB / 431.3 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.212, allocations: 112.6 kB / 431.5 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.212, allocations: 12 kB / 431.5 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2121, allocations: 8 kB / 431.5 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.2122, allocations: 27.98 kB / 431.5 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.2122, allocations: 12 kB / 431.5 MB, free: 2.984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.2124, allocations: 207.1 kB / 431.7 MB, free: 2.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2124, allocations: 0 / 431.7 MB, free: 2.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003649/0.2127, allocations: 120 kB / 431.8 MB, free: 2.664 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.2129, allocations: 129.9 kB / 432 MB, free: 2.527 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.2133, allocations: 312.5 kB / 432.3 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2133, allocations: 0 / 432.3 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.2135, allocations: 137.1 kB / 432.4 MB, free: 2.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.214, allocations: 60.25 kB / 432.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.2158, allocations: 2.071 MB / 434.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.2162, allocations: 0.921 MB / 435.5 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.283e-05/0.2163, allocations: 35.44 kB / 435.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2163, allocations: 0 / 435.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of Templates: time 0.01018/0.2265, allocations: 9.601 MB / 445.1 MB, free: 5.348 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches