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.001512/0.001512, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002195/0.002195, allocations: 214.7 kB / 24.48 MB, free: 3.941 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 2.2/2.2, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.002236/0.002236, allocations: 47.92 kB / 379 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4019, allocations: 53.36 MB / 432.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01185/0.4137, allocations: 4.846 MB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007232/0.4209, allocations: 2.056 MB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.4222, allocations: 51.56 kB / 439.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009276/0.4232, allocations: 206.2 kB / 439.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.4243, allocations: 170.4 kB / 439.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.4261, allocations: 407 kB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002078/0.4282, allocations: 1.013 MB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.4293, allocations: 421.4 kB / 441.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007562/0.43, allocations: 350.8 kB / 441.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006935/0.4307, allocations: 370.2 kB / 442.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.4309, allocations: 92 kB / 442.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004753/0.4314, allocations: 156 kB / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002978/0.4317, allocations: 207.3 kB / 442.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005399/0.4322, allocations: 346.5 kB / 443 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00219/0.4344, allocations: 1.201 MB / 444.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4344, allocations: 7.938 kB / 444.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4344, allocations: 0 / 444.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.062e-05/0.4345, allocations: 0 / 444.2 MB, free: 10.79 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.002566/0.437, allocations: 0.9842 MB / 445.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.4371, allocations: 8.031 kB / 445.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004445/0.4375, allocations: 104.4 kB / 445.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.4391, allocations: 456.3 kB / 445.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.4392, allocations: 66.38 kB / 445.8 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/0.4394, allocations: 96.31 kB / 445.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002607/0.442, allocations: 0.8009 MB / 446.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.305e-05/0.4421, allocations: 7.922 kB / 446.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.4422, allocations: 36 kB / 446.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.011e-05/0.4422, allocations: 24 kB / 446.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.4441, allocations: 495.6 kB / 447.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005863/0.45, allocations: 2.481 MB / 449.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009736/0.4509, allocations: 203.1 kB / 449.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003166/0.4513, allocations: 96.81 kB / 450 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/0.4514, allocations: 15.98 kB / 450 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.501e-05/0.4515, allocations: 46.94 kB / 450 MB, free: 4.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.256e-06/0.4515, allocations: 0 / 450 MB, free: 4.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.004269/0.4558, allocations: 1.128 MB / 451.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.4558, allocations: 55.41 kB / 451.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006139/0.4564, allocations: 317.6 kB / 451.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.4565, allocations: 33.7 kB / 451.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/0.4569, allocations: 403.7 kB / 452 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.4571, allocations: 142.8 kB / 452.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.4573, allocations: 90.14 kB / 452.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002413/0.4576, allocations: 354.7 kB / 452.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.4579, allocations: 105 kB / 452.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005655/0.4585, allocations: 258 kB / 452.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/0.4595, allocations: 396.6 kB / 453.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4595, allocations: 3.938 kB / 453.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001361/0.4608, allocations: 461.3 kB / 453.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.4609, allocations: 8 kB / 453.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4609, allocations: 4.594 kB / 453.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003128/0.4612, allocations: 36.84 kB / 453.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007009/0.4619, allocations: 111.8 kB / 453.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006559/0.4626, allocations: 0.5562 MB / 454.4 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.4629, allocations: 16.05 kB / 454.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.463, allocations: 23.94 kB / 454.5 MB, free: 15.96 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.0005048/0.4635, allocations: 221.6 kB / 454.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.4636, allocations: 35.77 kB / 454.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.4647, allocations: 333.7 kB / 455.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.4648, allocations: 4 kB / 455.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4648, allocations: 0 / 455.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4648, allocations: 0 / 455.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.4671, allocations: 0.8402 MB / 455.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.4671, allocations: 0 / 455.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000741/0.4679, allocations: 88.05 kB / 456 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002326/0.4681, allocations: 28.84 kB / 456 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/0.4681, allocations: 12 kB / 456 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005816/0.4687, allocations: 0.5523 MB / 456.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4687, allocations: 0 / 456.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.4702, allocations: 0.5487 MB / 457.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.4703, allocations: 35.7 kB / 457.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/0.4704, allocations: 12.06 kB / 457.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.4707, allocations: 8 kB / 457.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.41e-05/0.4707, allocations: 23.95 kB / 457.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.4708, allocations: 19.98 kB / 457.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003855/0.4712, allocations: 207.2 kB / 457.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4712, allocations: 4 kB / 457.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009061/0.4721, allocations: 120 kB / 457.6 MB, free: 12.76 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.0002765/0.4724, allocations: 127.2 kB / 457.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.4735, allocations: 299.8 kB / 458 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4735, allocations: 0 / 458 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.474, allocations: 137.1 kB / 458.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009413/0.4749, allocations: 81.62 kB / 458.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.4793, allocations: 1.586 MB / 459.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.4799, allocations: 333.6 kB / 460.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003077/0.4802, allocations: 46.22 kB / 460.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.4803, allocations: 31.44 kB / 460.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4803, allocations: 0 / 460.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Templates: time 0.01929/0.4996, allocations: 4.557 MB / 464.7 MB, free: 5.566 MB / 366.1 MB " [Timeout remaining time 659] 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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: 7.069903447001707]