Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002156/0.002156, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 51.92 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1264, allocations: 53.32 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1999/0.3263, allocations: 5.459 MB / 432.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003633/0.3299, allocations: 2.158 MB / 434.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004834/0.3304, allocations: 49.19 kB / 434.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000424/0.3308, allocations: 205.3 kB / 434.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003404/0.3312, allocations: 178.5 kB / 434.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008054/0.332, allocations: 404.6 kB / 435.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008978/0.3329, allocations: 1.007 MB / 436.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005888/0.3334, allocations: 426.4 kB / 436.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004475/0.3339, allocations: 354.7 kB / 437 MB, free: 6.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004357/0.3343, allocations: 365 kB / 437.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.3345, allocations: 96.53 kB / 437.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002717/0.3347, allocations: 160.4 kB / 437.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.3349, allocations: 203.5 kB / 437.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003699/0.3353, allocations: 433.4 kB / 438.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.3366, allocations: 1.199 MB / 439.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3366, allocations: 0 / 439.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3366, allocations: 0 / 439.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.3367, allocations: 0 / 439.4 MB, free: 5.785 MB / 350.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.001509/0.3382, allocations: 1.059 MB / 440.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3382, allocations: 9.875 kB / 440.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002595/0.3385, allocations: 100.2 kB / 440.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007485/0.3392, allocations: 0.5232 MB / 441.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.3393, allocations: 64.25 kB / 441.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3394, allocations: 89.08 kB / 441.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3408, allocations: 0.8027 MB / 442.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.3408, allocations: 7.125 kB / 442.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.3409, allocations: 32.59 kB / 442.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.3409, allocations: 21.16 kB / 442.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000994/0.3419, allocations: 0.4948 MB / 442.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.345, allocations: 2.868 MB / 445.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005678/0.3456, allocations: 205.8 kB / 445.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.3458, allocations: 100.6 kB / 445.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.3459, allocations: 250.5 kB / 446 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.3459, allocations: 43.34 kB / 446.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.3459, allocations: 0 / 446.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002344/0.3483, allocations: 1.269 MB / 447.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.3483, allocations: 55.91 kB / 447.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.3487, allocations: 313.7 kB / 447.7 MB, free: 380 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.3487, allocations: 30.92 kB / 447.7 MB, free: 344 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.3489, allocations: 411.7 kB / 448.1 MB, free: 16 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.349, allocations: 138.6 kB / 448.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.3492, allocations: 90.8 kB / 448.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3493, allocations: 355.5 kB / 448.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.3496, allocations: 107.1 kB / 448.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.35, allocations: 248.9 kB / 449.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006026/0.3506, allocations: 392.9 kB / 449.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3506, allocations: 6.469 kB / 449.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007894/0.3513, allocations: 458.1 kB / 449.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3514, allocations: 11.41 kB / 449.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.3514, allocations: 4.578 kB / 449.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/0.3516, allocations: 34.19 kB / 449.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.352, allocations: 115.5 kB / 450.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004736/0.3524, allocations: 0.5542 MB / 450.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.3526, allocations: 15.56 kB / 450.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.3527, allocations: 27.08 kB / 450.6 MB, free: 14.17 MB / 366.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.000327/0.353, allocations: 217.5 kB / 450.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.53e-05/0.3531, allocations: 39.33 kB / 450.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007096/0.3538, allocations: 318.4 kB / 451.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3538, allocations: 3.031 kB / 451.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3538, allocations: 5.156 kB / 451.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3538, allocations: 1.641 kB / 451.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.3555, allocations: 1.009 MB / 452.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3555, allocations: 1.188 kB / 452.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.3559, allocations: 86.09 kB / 452.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.356, allocations: 28.88 kB / 452.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.3561, allocations: 14.03 kB / 452.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000396/0.3564, allocations: 0.5548 MB / 452.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.3565, allocations: 1.094 kB / 452.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008834/0.3573, allocations: 0.5522 MB / 453.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.299e-05/0.3574, allocations: 109.2 kB / 453.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/0.3575, allocations: 12.08 kB / 453.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.3576, allocations: 9.312 kB / 453.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.056e-05/0.3577, allocations: 28.22 kB / 453.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.3577, allocations: 17.23 kB / 453.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002425/0.358, allocations: 218 kB / 453.9 MB, free: 12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.358, allocations: 0 / 453.9 MB, free: 12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005792/0.3586, allocations: 118.9 kB / 454 MB, free: 11.99 MB / 366.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.0001884/0.3587, allocations: 123.5 kB / 454.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006766/0.3594, allocations: 298.2 kB / 454.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3594, allocations: 0 / 454.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.3597, allocations: 135.6 kB / 454.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005445/0.3603, allocations: 70.12 kB / 454.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.3629, allocations: 1.608 MB / 456.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006592/0.3636, allocations: 0.9243 MB / 457.1 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3637, allocations: 50.95 kB / 457.2 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-05/0.3638, allocations: 31.98 kB / 457.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3638, allocations: 0 / 457.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of Templates: time 0.01008/0.3739, allocations: 3.948 MB / 461.1 MB, free: 8.641 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.7233573496341705]