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.001209/0.001209, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.261/1.261, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008389/0.0008388, allocations: 87.92 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.000264, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2059, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09115/0.297, allocations: 82.34 MB / 483.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.2973, allocations: 71.97 kB / 483.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02857/0.3259, allocations: 11.94 MB / 495.8 MB, free: 2.141 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3259, allocations: 0 / 495.8 MB, free: 2.141 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.229e-05/0.326, allocations: 20 kB / 495.9 MB, free: 2.121 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.00144/0.3275, allocations: 0.8802 MB / 496.7 MB, free: 1.191 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3275, allocations: 8.031 kB / 496.8 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.3276, allocations: 90.95 kB / 496.8 MB, free: 1.094 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006872/0.3283, allocations: 0.4936 MB / 497.3 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.488e-05/0.3284, allocations: 65.98 kB / 497.4 MB, free: 0.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.3285, allocations: 87.91 kB / 497.5 MB, free: 424 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.3299, allocations: 0.7928 MB / 498.3 MB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.3299, allocations: 3.938 kB / 498.3 MB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.849e-05/0.33, allocations: 36 kB / 498.3 MB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.33, allocations: 31.94 kB / 498.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009192/0.3309, allocations: 491.6 kB / 498.8 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003098/0.334, allocations: 2.895 MB / 0.49 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.3345, allocations: 224.9 kB / 0.4902 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001936/0.3348, allocations: 247.3 kB / 0.4904 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.3348, allocations: 35.06 kB / 0.4904 GB, free: 11.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.923e-06/0.3348, allocations: 3.938 kB / 0.4905 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002164/0.337, allocations: 1.266 MB / 0.4917 GB, free: 10.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.337, allocations: 59.39 kB / 0.4917 GB, free: 9.996 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.3373, allocations: 267.6 kB / 0.492 GB, free: 9.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.3374, allocations: 29.7 kB / 0.492 GB, free: 9.695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.3376, allocations: 394.6 kB / 0.4924 GB, free: 9.305 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.386e-05/0.3377, allocations: 138 kB / 0.4925 GB, free: 9.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.3377, allocations: 12 kB / 0.4925 GB, free: 9.156 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.3379, allocations: 346.8 kB / 0.4929 GB, free: 8.809 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.3381, allocations: 109.1 kB / 0.493 GB, free: 8.703 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.3384, allocations: 262.5 kB / 0.4932 GB, free: 8.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.3386, allocations: 143.9 kB / 0.4934 GB, free: 8.246 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3386, allocations: 0 / 0.4934 GB, free: 8.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006737/0.3393, allocations: 457.5 kB / 0.4938 GB, free: 7.789 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3393, allocations: 16.05 kB / 0.4938 GB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3393, allocations: 7.984 kB / 0.4938 GB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001587/0.3395, allocations: 40.77 kB / 0.4939 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.3399, allocations: 107.9 kB / 0.494 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003445/0.3402, allocations: 0.5562 MB / 0.4945 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.3404, allocations: 12 kB / 0.4945 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.3405, allocations: 28.06 kB / 0.4946 GB, free: 6.996 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.0002588/0.3407, allocations: 224.8 kB / 0.4948 GB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.482e-05/0.3408, allocations: 35.53 kB / 0.4948 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005927/0.3414, allocations: 323.5 kB / 0.4951 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.3414, allocations: 4 kB / 0.4951 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3414, allocations: 0 / 0.4951 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3414, allocations: 8.016 kB / 0.4951 GB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.3428, allocations: 1.031 MB / 0.4961 GB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3428, allocations: 4 kB / 0.4961 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.3432, allocations: 75.89 kB / 0.4962 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001242/0.3433, allocations: 44.73 kB / 0.4962 GB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.3433, allocations: 8 kB / 0.4963 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003076/0.3436, allocations: 0.5486 MB / 0.4968 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3437, allocations: 0 / 0.4968 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007804/0.3444, allocations: 0.6266 MB / 0.4974 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.442e-05/0.3446, allocations: 112.6 kB / 0.4975 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.3446, allocations: 11.94 kB / 0.4975 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.3448, allocations: 11.98 kB / 0.4975 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.3448, allocations: 23.97 kB / 0.4976 GB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3449, allocations: 8.094 kB / 0.4976 GB, free: 3.703 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001911/0.345, allocations: 211 kB / 0.4978 GB, free: 3.496 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3451, allocations: 0 / 0.4978 GB, free: 3.496 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000479/0.3455, allocations: 135.9 kB / 0.4979 GB, free: 3.363 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.0001686/0.3457, allocations: 127.1 kB / 0.498 GB, free: 3.227 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.3463, allocations: 296.7 kB / 0.4983 GB, free: 2.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3463, allocations: 0 / 0.4983 GB, free: 2.938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.3466, allocations: 139.8 kB / 0.4984 GB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.3469, allocations: 64.2 kB / 0.4985 GB, free: 2.742 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.3494, allocations: 2.008 MB / 0.5005 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1694/0.5188, allocations: 0.9297 MB / 0.5014 GB, free: 95.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002401/0.5191, allocations: 45.61 kB / 0.5014 GB, free: 95.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.25e-05/0.5192, allocations: 33.89 kB / 0.5014 GB, free: 95.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5192, allocations: 0 / 0.5014 GB, free: 95.36 MB / 378.7 MB Notification: Performance of Templates: time 0.007737/0.5269, allocations: 3.433 MB / 0.5048 GB, free: 95.25 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/jenkins/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