Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.009811/0.009811, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.002754/0.002754, allocations: 190.8 kB / 16.67 MB, free: 6.348 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.647/1.647, allocations: 205.1 MB / 222.6 MB, free: 4.547 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.001123/0.001123, allocations: 54.19 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007707/0.1091, allocations: 5.406 MB / 378.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005066/0.1142, allocations: 2.119 MB / 380.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.1156, allocations: 39.75 kB / 380.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005636/0.1162, allocations: 202.3 kB / 380.9 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004899/0.1167, allocations: 178.4 kB / 381.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.1177, allocations: 391.1 kB / 381.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.1191, allocations: 1.017 MB / 382.5 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009001/0.12, allocations: 0.6103 MB / 383.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000457/0.1205, allocations: 338.9 kB / 383.4 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003945/0.1209, allocations: 366.3 kB / 383.8 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.121, allocations: 92 kB / 383.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003013/0.1213, allocations: 151.9 kB / 384 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.1215, allocations: 199.4 kB / 384.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003887/0.1219, allocations: 434 kB / 384.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.1233, allocations: 1.179 MB / 385.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1233, allocations: 0 / 385.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.1233, allocations: 0 / 385.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.1233, allocations: 0 / 385.8 MB, free: 4.582 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.001529/0.1249, allocations: 1.056 MB / 386.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.1249, allocations: 8.031 kB / 386.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.1251, allocations: 92.38 kB / 387 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008358/0.1259, allocations: 0.5223 MB / 387.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.71e-05/0.126, allocations: 62.38 kB / 387.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.1261, allocations: 92.31 kB / 387.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1275, allocations: 0.8008 MB / 388.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.1275, allocations: 8 kB / 388.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.764e-05/0.1276, allocations: 32 kB / 388.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.1276, allocations: 20 kB / 388.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009292/0.1285, allocations: 0.4957 MB / 389 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003337/0.1319, allocations: 2.869 MB / 391.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000689/0.1326, allocations: 222.7 kB / 392.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.1328, allocations: 116.7 kB / 392.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002432/0.133, allocations: 247.3 kB / 392.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.1331, allocations: 34.56 kB / 392.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.625e-06/0.1331, allocations: 0 / 392.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002521/0.1356, allocations: 1.272 MB / 393.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.1357, allocations: 55.41 kB / 393.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.136, allocations: 304.5 kB / 394.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.136, allocations: 37.64 kB / 394.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/0.1363, allocations: 407.7 kB / 394.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.1364, allocations: 142.8 kB / 394.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.1365, allocations: 98.14 kB / 394.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1367, allocations: 350.7 kB / 395.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.1369, allocations: 105.1 kB / 395.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.1372, allocations: 250.7 kB / 395.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.1377, allocations: 388.7 kB / 395.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1377, allocations: 3.938 kB / 395.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007142/0.1384, allocations: 457.6 kB / 396.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.1384, allocations: 11.98 kB / 396.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1385, allocations: 4 kB / 396.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002049/0.1387, allocations: 36.84 kB / 396.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003491/0.139, allocations: 111.8 kB / 396.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004183/0.1395, allocations: 0.5564 MB / 397 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.1397, allocations: 20.06 kB / 397 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/0.1397, allocations: 23.98 kB / 397.1 MB, free: 8.711 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.0003512/0.1401, allocations: 209.7 kB / 397.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.383e-05/0.1402, allocations: 39.77 kB / 397.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006888/0.1408, allocations: 334.2 kB / 397.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.1409, allocations: 4 kB / 397.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1409, allocations: 0 / 397.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1409, allocations: 0 / 397.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.1425, allocations: 1.015 MB / 398.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1426, allocations: 0 / 398.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.1429, allocations: 83.89 kB / 398.7 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.1431, allocations: 28.84 kB / 398.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.1431, allocations: 12 kB / 398.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004208/0.1436, allocations: 0.5562 MB / 399.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1436, allocations: 3.938 kB / 399.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008161/0.1444, allocations: 0.5528 MB / 399.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.762e-05/0.1445, allocations: 112.9 kB / 400 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/0.1446, allocations: 8 kB / 400 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.1448, allocations: 8 kB / 400 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.1448, allocations: 24.06 kB / 400 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.1448, allocations: 15.92 kB / 400 MB, free: 5.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.1451, allocations: 219 kB / 400.3 MB, free: 5.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1451, allocations: 0 / 400.3 MB, free: 5.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006005/0.1457, allocations: 119.9 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.0002207/0.1459, allocations: 115.3 kB / 400.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006539/0.1466, allocations: 312.6 kB / 400.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.1466, allocations: 192 / 400.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.1469, allocations: 143.8 kB / 400.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.1474, allocations: 73.17 kB / 401 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.1497, allocations: 1.599 MB / 402.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.1503, allocations: 0.921 MB / 403.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.1504, allocations: 43.34 kB / 403.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.589e-05/0.1505, allocations: 31.44 kB / 403.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1505, allocations: 0 / 403.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of Templates: time 0.009339/0.1599, allocations: 3.842 MB / 407.4 MB, free: 14.05 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)