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.001026/0.001026, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 227.2 MB / 245 MB, free: 7.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009027/0.0009028, allocations: 103 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002007/0.0002007, allocations: 8 kB / 357.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1927, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0947/0.2875, allocations: 83.14 MB / 492.6 MB, free: 7.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.2878, allocations: 77.22 kB / 492.6 MB, free: 7.402 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02906/0.3168, allocations: 12.04 MB / 0.4928 GB, free: 11.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3169, allocations: 192 / 0.4928 GB, free: 11.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.883e-05/0.317, allocations: 27.98 kB / 0.4929 GB, free: 11.32 MB / 378.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.001765/0.3187, allocations: 0.8772 MB / 0.4937 GB, free: 10.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3188, allocations: 8.031 kB / 0.4937 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003004/0.3191, allocations: 106.9 kB / 0.4938 GB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007824/0.3199, allocations: 0.4937 MB / 0.4943 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.709e-05/0.3199, allocations: 58 kB / 0.4944 GB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.3201, allocations: 87.91 kB / 0.4945 GB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3215, allocations: 0.8004 MB / 0.4952 GB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.3216, allocations: 7.891 kB / 0.4952 GB, free: 8.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.3216, allocations: 36 kB / 0.4953 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.3216, allocations: 24 kB / 0.4953 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.3227, allocations: 495.6 kB / 0.4958 GB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003293/0.326, allocations: 2.887 MB / 0.4986 GB, free: 5.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005335/0.3265, allocations: 234.3 kB / 0.4988 GB, free: 4.965 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002156/0.3267, allocations: 255.2 kB / 0.4991 GB, free: 4.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.3268, allocations: 39.03 kB / 0.4991 GB, free: 4.613 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.785e-06/0.3268, allocations: 0 / 0.4991 GB, free: 4.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002177/0.329, allocations: 1.269 MB / 0.5003 GB, free: 3.246 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.329, allocations: 55.41 kB / 0.5004 GB, free: 3.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3293, allocations: 263.6 kB / 0.5006 GB, free: 2.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.3293, allocations: 33.69 kB / 0.5007 GB, free: 2.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.3295, allocations: 394.6 kB / 0.5011 GB, free: 2.488 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.343e-05/0.3296, allocations: 134.1 kB / 0.5012 GB, free: 2.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.3296, allocations: 12 kB / 0.5012 GB, free: 2.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3298, allocations: 346.8 kB / 0.5015 GB, free: 1.996 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.33, allocations: 109.1 kB / 0.5016 GB, free: 1.891 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.3303, allocations: 260.9 kB / 0.5019 GB, free: 1.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.3305, allocations: 147.9 kB / 0.502 GB, free: 1.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3305, allocations: 0 / 0.502 GB, free: 1.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006601/0.3312, allocations: 468.8 kB / 0.5025 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3312, allocations: 4 kB / 0.5025 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3312, allocations: 8 kB / 0.5025 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.3314, allocations: 40.84 kB / 0.5025 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003325/0.3317, allocations: 116.3 kB / 0.5026 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003382/0.3321, allocations: 0.5524 MB / 0.5032 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.3323, allocations: 19.95 kB / 0.5032 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.3323, allocations: 24 kB / 0.5032 GB, free: 176 kB / 378.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.1566/0.4889, allocations: 208.6 kB / 0.5034 GB, free: 90.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.4891, allocations: 34.47 kB / 0.5034 GB, free: 90.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007909/0.4899, allocations: 332 kB / 0.5038 GB, free: 90.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.4899, allocations: 3.062 kB / 0.5038 GB, free: 90.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4899, allocations: 3.375 kB / 0.5038 GB, free: 90.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.4899, allocations: 3.984 kB / 0.5038 GB, free: 90.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.4915, allocations: 1.022 MB / 0.5048 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.4915, allocations: 2.484 kB / 0.5048 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.4919, allocations: 80.66 kB / 0.5048 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001314/0.492, allocations: 35.91 kB / 0.5049 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.4921, allocations: 8.141 kB / 0.5049 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000218/0.4923, allocations: 0.5505 MB / 0.5054 GB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4923, allocations: 3.531 kB / 0.5054 GB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007428/0.4931, allocations: 0.6195 MB / 0.506 GB, free: 89.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-05/0.4932, allocations: 110.1 kB / 0.5061 GB, free: 89.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.776e-05/0.4932, allocations: 10.44 kB / 0.5061 GB, free: 89.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.4934, allocations: 9.438 kB / 0.5062 GB, free: 89.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.4934, allocations: 27.38 kB / 0.5062 GB, free: 89.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.4935, allocations: 13.48 kB / 0.5062 GB, free: 89.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002001/0.4937, allocations: 206.9 kB / 0.5064 GB, free: 89.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4937, allocations: 1.031 kB / 0.5064 GB, free: 89.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005261/0.4942, allocations: 121.7 kB / 0.5065 GB, free: 89.23 MB / 378.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.0001751/0.4944, allocations: 134 kB / 0.5066 GB, free: 89.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005874/0.495, allocations: 304.3 kB / 0.5069 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.495, allocations: 1.312 kB / 0.5069 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002467/0.4953, allocations: 144.4 kB / 0.5071 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.4956, allocations: 61.66 kB / 0.5071 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.4978, allocations: 2.007 MB / 0.5091 GB, free: 87.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.4983, allocations: 0.9402 MB / 0.51 GB, free: 87.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001732/0.4985, allocations: 44.12 kB / 0.51 GB, free: 87.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.895e-05/0.4986, allocations: 31.5 kB / 0.5101 GB, free: 87.2 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4986, allocations: 0 / 0.5101 GB, free: 87.2 MB / 378.7 MB Notification: Performance of Templates: time 0.00734/0.5059, allocations: 3.446 MB / 0.5134 GB, free: 86.96 MB / 378.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