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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000974/0.000974, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.022/1.022, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.572e-05, allocations: 2.312 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004899/0.004925, allocations: 5.325 MB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.007571, allocations: 2.102 MB / 280.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.00791, allocations: 55.56 kB / 280.4 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004104/0.008321, allocations: 210.1 kB / 280.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002502/0.008571, allocations: 174.3 kB / 280.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006541/0.009225, allocations: 406.9 kB / 281.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007452/0.00997, allocations: 1.044 MB / 282.2 MB, free: 8.109 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004573/0.01043, allocations: 405.6 kB / 282.6 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.01089, allocations: 0.5224 MB / 283.1 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004001/0.01129, allocations: 279.2 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.15e-05/0.01137, allocations: 92 kB / 283.5 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.01155, allocations: 151.8 kB / 283.6 MB, free: 6.652 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.01168, allocations: 211.2 kB / 283.8 MB, free: 6.445 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.01187, allocations: 295.3 kB / 284.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006049/0.01247, allocations: 0.681 MB / 284.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.01248, allocations: 0 / 284.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01248, allocations: 0 / 284.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.01249, allocations: 0 / 284.8 MB, free: 5.473 MB / 266.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.0009262/0.01341, allocations: 1.08 MB / 285.9 MB, free: 4.355 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.01345, allocations: 11.98 kB / 285.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/0.01365, allocations: 172.4 kB / 286.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004824/0.01414, allocations: 482.4 kB / 286.5 MB, free: 3.676 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.823e-05/0.01417, allocations: 66.38 kB / 286.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.218e-05/0.01426, allocations: 88.33 kB / 286.7 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008998/0.01516, allocations: 0.6458 MB / 287.3 MB, free: 2.828 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.01518, allocations: 12.12 kB / 287.3 MB, free: 2.816 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.01522, allocations: 40.31 kB / 287.4 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.01524, allocations: 23.94 kB / 287.4 MB, free: 2.754 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004402/0.01568, allocations: 287.6 kB / 287.7 MB, free: 2.473 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1264/0.1421, allocations: 2.956 MB / 290.6 MB, free: 24.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.1426, allocations: 167.9 kB / 290.8 MB, free: 24.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1427, allocations: 63.31 kB / 290.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.1428, allocations: 22.06 kB / 290.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.1428, allocations: 45.95 kB / 290.9 MB, free: 24.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.545e-06/0.1428, allocations: 0 / 290.9 MB, free: 24.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001744/0.1446, allocations: 0.9734 MB / 291.9 MB, free: 24.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.456e-05/0.1446, allocations: 55.22 kB / 292 MB, free: 24.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.1449, allocations: 358.4 kB / 292.3 MB, free: 23.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.1449, allocations: 33.14 kB / 292.3 MB, free: 23.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.1451, allocations: 454.9 kB / 292.8 MB, free: 23.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.365e-05/0.1452, allocations: 136.3 kB / 292.9 MB, free: 23.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/0.1453, allocations: 95.42 kB / 293 MB, free: 23.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.484e-05/0.1454, allocations: 0.5184 MB / 293.5 MB, free: 23.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.1455, allocations: 63.09 kB / 293.6 MB, free: 23.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1457, allocations: 257.9 kB / 293.8 MB, free: 22.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.1461, allocations: 354.4 kB / 294.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.1461, allocations: 2.062 kB / 294.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005725/0.1466, allocations: 393.4 kB / 294.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1467, allocations: 7.156 kB / 294.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.1467, allocations: 5.75 kB / 294.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.1469, allocations: 31.06 kB / 294.6 MB, free: 22.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.1471, allocations: 108.8 kB / 294.7 MB, free: 22.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002469/0.1474, allocations: 0.8152 MB / 295.5 MB, free: 21.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.1475, allocations: 16.77 kB / 295.6 MB, free: 21.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.1475, allocations: 21.89 kB / 295.6 MB, free: 21.71 MB / 266.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 (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.0001516/0.1477, allocations: 189.4 kB / 295.8 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.1477, allocations: 49.3 kB / 295.8 MB, free: 21.53 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003992/0.1481, allocations: 269.9 kB / 296.1 MB, free: 21.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1482, allocations: 5.234 kB / 296.1 MB, free: 21.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1482, allocations: 0 / 296.1 MB, free: 21.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1482, allocations: 3.172 kB / 296.1 MB, free: 21.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009703/0.1491, allocations: 0.8457 MB / 296.9 MB, free: 21.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1491, allocations: 2.391 kB / 296.9 MB, free: 21.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.1494, allocations: 80.59 kB / 297 MB, free: 21.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001003/0.1495, allocations: 28.69 kB / 297 MB, free: 21.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1495, allocations: 9.188 kB / 297 MB, free: 21.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001714/0.1496, allocations: 0.811 MB / 297.9 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1496, allocations: 1.281 kB / 297.9 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.1501, allocations: 0.5018 MB / 298.4 MB, free: 19.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.813e-05/0.1501, allocations: 31.47 kB / 298.4 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.1502, allocations: 14.91 kB / 298.4 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.1e-05/0.1502, allocations: 7.641 kB / 298.4 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.1503, allocations: 32.98 kB / 298.4 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1503, allocations: 11.69 kB / 298.5 MB, free: 19.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001428/0.1504, allocations: 233.9 kB / 298.7 MB, free: 19.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1504, allocations: 0 / 298.7 MB, free: 19.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004699/0.1509, allocations: 122.8 kB / 298.8 MB, free: 19.84 MB / 266.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 (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.0001658/0.1511, allocations: 131.3 kB / 298.9 MB, free: 19.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.1515, allocations: 231.1 kB / 299.2 MB, free: 19.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1515, allocations: 1.25 kB / 299.2 MB, free: 19.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.1517, allocations: 117.6 kB / 299.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.152, allocations: 74.77 kB / 299.3 MB, free: 19.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.1539, allocations: 1.383 MB / 300.7 MB, free: 18.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.154, allocations: 149.1 kB / 300.9 MB, free: 18.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001231/0.1541, allocations: 49.36 kB / 300.9 MB, free: 18.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.1542, allocations: 32 kB / 301 MB, free: 18.75 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1542, allocations: 0 / 301 MB, free: 18.75 MB / 266.7 MB Notification: Performance of Templates: time 0.008236/0.1624, allocations: 3.564 MB / 304.5 MB, free: 18.2 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.981006066314876]