Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008932/0.0008931, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007423/0.0007423, allocations: 104.1 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002974, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2103, allocations: 50.39 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09356/0.3039, allocations: 82.4 MB / 485.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.3042, allocations: 71.95 kB / 485.2 MB, free: 13.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04505/0.3492, allocations: 11.96 MB / 497.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3493, allocations: 0 / 497.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.323e-05/0.3494, allocations: 31.92 kB / 497.2 MB, free: 1.875 MB / 362.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.002601/0.352, allocations: 0.862 MB / 498.1 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.3521, allocations: 12.03 kB / 498.1 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003049/0.3524, allocations: 91.84 kB / 498.2 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.3537, allocations: 0.5063 MB / 498.7 MB, free: 324 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.195e-05/0.3539, allocations: 66.38 kB / 498.7 MB, free: 256 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002373/0.3541, allocations: 84.38 kB / 498.8 MB, free: 172 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.3567, allocations: 0.7972 MB / 499.6 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.759e-05/0.3568, allocations: 12.09 kB / 499.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.357, allocations: 35.94 kB / 499.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.908e-05/0.357, allocations: 20 kB / 499.7 MB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.3589, allocations: 0.4918 MB / 0.4884 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005867/0.3647, allocations: 2.887 MB / 0.4913 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009404/0.3657, allocations: 231.5 kB / 0.4915 GB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.3661, allocations: 105.3 kB / 0.4916 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003238/0.3664, allocations: 247.3 kB / 0.4918 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/0.3665, allocations: 50.44 kB / 0.4919 GB, free: 11.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 6.873e-06/0.3665, allocations: 0 / 0.4919 GB, free: 11.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.003915/0.3704, allocations: 1.259 MB / 0.4931 GB, free: 9.711 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.3705, allocations: 59.34 kB / 0.4932 GB, free: 9.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005558/0.3711, allocations: 300.5 kB / 0.4934 GB, free: 9.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.3711, allocations: 33.7 kB / 0.4935 GB, free: 9.301 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003596/0.3715, allocations: 394.5 kB / 0.4938 GB, free: 8.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.3717, allocations: 138 kB / 0.494 GB, free: 8.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.3717, allocations: 12 kB / 0.494 GB, free: 8.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3719, allocations: 354.7 kB / 0.4943 GB, free: 8.406 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/0.3723, allocations: 105.1 kB / 0.4944 GB, free: 8.305 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.3728, allocations: 262.5 kB / 0.4947 GB, free: 7.988 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009056/0.3737, allocations: 384.8 kB / 0.495 GB, free: 7.551 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.3738, allocations: 4 kB / 0.4951 GB, free: 7.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001287/0.3751, allocations: 453.7 kB / 0.4955 GB, free: 7.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.3751, allocations: 19.97 kB / 0.4955 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.3751, allocations: 4 kB / 0.4955 GB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002883/0.3754, allocations: 36.84 kB / 0.4955 GB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007018/0.3762, allocations: 115.8 kB / 0.4957 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005398/0.3767, allocations: 0.5524 MB / 0.4962 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.3771, allocations: 20 kB / 0.4962 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.3772, allocations: 28 kB / 0.4962 GB, free: 6.293 MB / 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.0005276/0.3777, allocations: 209.8 kB / 0.4964 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.9e-05/0.3778, allocations: 39.53 kB / 0.4965 GB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.3789, allocations: 328.3 kB / 0.4968 GB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.3789, allocations: 4 kB / 0.4968 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3789, allocations: 0 / 0.4968 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.379, allocations: 3.984 kB / 0.4968 GB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002524/0.3815, allocations: 1.023 MB / 0.4978 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.3815, allocations: 4 kB / 0.4978 GB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.3823, allocations: 79.91 kB / 0.4979 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002475/0.3825, allocations: 28.84 kB / 0.4979 GB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.3826, allocations: 11.98 kB / 0.4979 GB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005053/0.3831, allocations: 0.5641 MB / 0.4985 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/0.3831, allocations: 4.031 kB / 0.4985 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.3844, allocations: 0.5517 MB / 0.499 GB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.3846, allocations: 116.6 kB / 0.4991 GB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-05/0.3847, allocations: 8 kB / 0.4991 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.3849, allocations: 8 kB / 0.4991 GB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.3851, allocations: 36.08 kB / 0.4992 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/0.3851, allocations: 19.92 kB / 0.4992 GB, free: 3.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003865/0.3855, allocations: 203.1 kB / 0.4994 GB, free: 2.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3855, allocations: 0 / 0.4994 GB, free: 2.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009699/0.3865, allocations: 131.9 kB / 0.4995 GB, free: 2.762 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.0002666/0.3868, allocations: 115.5 kB / 0.4996 GB, free: 2.641 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.3879, allocations: 299.4 kB / 0.4999 GB, free: 2.348 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3879, allocations: 5.188 kB / 0.4999 GB, free: 2.344 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004935/0.3884, allocations: 152.1 kB / 0.5001 GB, free: 2.195 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009555/0.3894, allocations: 60.66 kB / 0.5001 GB, free: 2.141 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.394, allocations: 2.014 MB / 0.5021 GB, free: 80 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2126/0.6066, allocations: 0.918 MB / 0.503 GB, free: 95.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.6069, allocations: 44.45 kB / 0.503 GB, free: 95.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.597e-05/0.607, allocations: 31.16 kB / 0.503 GB, free: 95.26 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.607, allocations: 0 / 0.503 GB, free: 95.26 MB / 378.7 MB Notification: Performance of Templates: time 0.009706/0.6167, allocations: 3.477 MB / 0.5064 GB, free: 95.16 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches