Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005552/0.005552, allocations: 97.61 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 193.6 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 44.94 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1157, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007723/0.1235, allocations: 5.407 MB / 378.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004374/0.1279, allocations: 2.115 MB / 380.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.1292, allocations: 39.75 kB / 380.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008042/0.13, allocations: 210.2 kB / 380.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009787/0.131, allocations: 166.4 kB / 381.1 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.1324, allocations: 387.1 kB / 381.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.1344, allocations: 1.021 MB / 382.5 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.1359, allocations: 0.6103 MB / 383.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007648/0.1366, allocations: 334.8 kB / 383.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007859/0.1375, allocations: 358.3 kB / 383.8 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002638/0.1377, allocations: 95.94 kB / 383.9 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005251/0.1383, allocations: 155.9 kB / 384 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002779/0.1386, allocations: 199.4 kB / 384.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005723/0.1391, allocations: 438 kB / 384.6 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0015/0.1407, allocations: 1.179 MB / 385.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.1407, allocations: 0 / 385.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1407, allocations: 0 / 385.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.1407, allocations: 0 / 385.8 MB, free: 4.586 MB / 318.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.001881/0.1426, allocations: 1.048 MB / 386.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.1427, allocations: 16.03 kB / 386.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.1429, allocations: 88.38 kB / 387 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009026/0.1438, allocations: 0.5262 MB / 387.5 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.1438, allocations: 66.36 kB / 387.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.144, allocations: 88.33 kB / 387.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1454, allocations: 0.8087 MB / 388.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/0.1455, allocations: 4 kB / 388.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.1455, allocations: 36 kB / 388.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.1456, allocations: 20 kB / 388.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.1466, allocations: 0.4918 MB / 389 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/0.1502, allocations: 2.869 MB / 391.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006062/0.1509, allocations: 218.7 kB / 392.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.1511, allocations: 104.8 kB / 392.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.1514, allocations: 251.2 kB / 392.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.1514, allocations: 38.56 kB / 392.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.404e-06/0.1514, allocations: 0 / 392.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002532/0.1539, allocations: 1.268 MB / 393.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.154, allocations: 59.41 kB / 393.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.1543, allocations: 312.4 kB / 394.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1544, allocations: 29.7 kB / 394.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.1547, allocations: 407.8 kB / 394.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.1548, allocations: 138.8 kB / 394.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1549, allocations: 98.08 kB / 394.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1551, allocations: 350.7 kB / 395.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1553, allocations: 109.1 kB / 395.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003212/0.1556, allocations: 250.7 kB / 395.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.1561, allocations: 392.6 kB / 395.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1562, allocations: 0 / 395.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007216/0.1569, allocations: 461.2 kB / 396.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1569, allocations: 4 kB / 396.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.1569, allocations: 4.594 kB / 396.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/0.1572, allocations: 44.78 kB / 396.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003387/0.1575, allocations: 103.9 kB / 396.4 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004435/0.158, allocations: 0.5601 MB / 397 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.1581, allocations: 15.98 kB / 397 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.1582, allocations: 24 kB / 397 MB, free: 8.719 MB / 334.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.0003481/0.1585, allocations: 217.8 kB / 397.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.371e-05/0.1586, allocations: 35.77 kB / 397.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005964/0.1592, allocations: 326.2 kB / 397.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1592, allocations: 4 kB / 397.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.1592, allocations: 0 / 397.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.1593, allocations: 4 kB / 397.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.1607, allocations: 1.019 MB / 398.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1607, allocations: 0 / 398.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003494/0.1611, allocations: 83.89 kB / 398.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001295/0.1612, allocations: 29 kB / 398.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.1612, allocations: 16.05 kB / 398.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003509/0.1616, allocations: 0.5523 MB / 399.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1616, allocations: 4 kB / 399.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007768/0.1624, allocations: 0.5567 MB / 399.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/0.1625, allocations: 108.9 kB / 400 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.204e-05/0.1625, allocations: 8 kB / 400 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.1627, allocations: 11.98 kB / 400 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.1628, allocations: 23.97 kB / 400 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.1628, allocations: 16 kB / 400 MB, free: 5.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.163, allocations: 207.1 kB / 400.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.068e-06/0.163, allocations: 96 / 400.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000595/0.1636, allocations: 131.8 kB / 400.4 MB, free: 5.207 MB / 334.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.000216/0.1639, allocations: 111.2 kB / 400.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006512/0.1645, allocations: 311.6 kB / 400.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.1645, allocations: 0 / 400.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.1648, allocations: 141.1 kB / 400.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005146/0.1653, allocations: 73.67 kB / 401 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.1678, allocations: 1.595 MB / 402.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/0.1684, allocations: 0.921 MB / 403.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001481/0.1685, allocations: 47.28 kB / 403.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.674e-05/0.1686, allocations: 31.42 kB / 403.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1686, allocations: 0 / 403.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of Templates: time 0.009078/0.1777, allocations: 3.838 MB / 407.4 MB, free: 14.07 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)