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.007816/0.007816, allocations: 100.9 kB / 15.73 MB, free: 6.473 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.001567/0.001567, allocations: 195 kB / 16.67 MB, free: 6.379 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.742/1.742, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001432/0.001432, allocations: 46.53 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1101, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008983/0.1191, allocations: 5.41 MB / 378.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00475/0.1239, allocations: 2.111 MB / 380.7 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.1252, allocations: 39.75 kB / 380.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007595/0.1261, allocations: 202.2 kB / 380.9 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000732/0.1268, allocations: 174.4 kB / 381.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1279, allocations: 391.1 kB / 381.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001248/0.1291, allocations: 1.021 MB / 382.5 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008119/0.13, allocations: 0.6064 MB / 383.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00044/0.1304, allocations: 342.8 kB / 383.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/0.1308, allocations: 362.3 kB / 383.8 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001716/0.131, allocations: 92 kB / 383.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.1313, allocations: 151.9 kB / 384 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.1315, allocations: 199.4 kB / 384.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003943/0.1319, allocations: 434 kB / 384.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.1331, allocations: 1.18 MB / 385.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1331, allocations: 0 / 385.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1331, allocations: 3.938 kB / 385.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.1331, allocations: 4 kB / 385.8 MB, free: 4.574 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.001391/0.1345, allocations: 1.018 MB / 386.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1346, allocations: 8.031 kB / 386.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.1347, allocations: 87.91 kB / 386.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007463/0.1355, allocations: 0.5259 MB / 387.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.1355, allocations: 62.38 kB / 387.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.1356, allocations: 88.28 kB / 387.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.137, allocations: 0.8087 MB / 388.4 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.652e-05/0.137, allocations: 7.891 kB / 388.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.024e-05/0.1371, allocations: 36 kB / 388.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.1371, allocations: 28 kB / 388.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009588/0.1381, allocations: 0.4918 MB / 389 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003315/0.1414, allocations: 2.844 MB / 391.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.142, allocations: 230.6 kB / 392.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.1422, allocations: 108.8 kB / 392.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000275/0.1425, allocations: 243.3 kB / 392.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/0.1426, allocations: 38.56 kB / 392.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.983e-06/0.1426, allocations: 0 / 392.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002395/0.145, allocations: 1.259 MB / 393.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.145, allocations: 55.41 kB / 393.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.1453, allocations: 308.4 kB / 394.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.1454, allocations: 33.64 kB / 394.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002622/0.1456, allocations: 406.5 kB / 394.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1458, allocations: 138 kB / 394.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.1459, allocations: 82.25 kB / 394.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.146, allocations: 350.7 kB / 395 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.1462, allocations: 105.1 kB / 395.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.1466, allocations: 254.5 kB / 395.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005711/0.1472, allocations: 392.6 kB / 395.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1472, allocations: 4 kB / 395.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000717/0.1479, allocations: 461 kB / 396.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.1479, allocations: 8 kB / 396.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.1479, allocations: 4 kB / 396.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002061/0.1482, allocations: 40.78 kB / 396.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003458/0.1485, allocations: 103.9 kB / 396.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004702/0.149, allocations: 0.5644 MB / 396.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1492, allocations: 15.98 kB / 397 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-05/0.1492, allocations: 24 kB / 397 MB, free: 8.777 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.0002862/0.1495, allocations: 221.6 kB / 397.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.588e-05/0.1496, allocations: 31.62 kB / 397.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005862/0.1502, allocations: 330.2 kB / 397.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1502, allocations: 4 kB / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1502, allocations: 0 / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1502, allocations: 0 / 397.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.1515, allocations: 1.011 MB / 398.6 MB, free: 7.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.1516, allocations: 4 kB / 398.6 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000338/0.1519, allocations: 75.89 kB / 398.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.152, allocations: 36.84 kB / 398.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.1521, allocations: 8 kB / 398.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003258/0.1524, allocations: 0.5525 MB / 399.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.185e-06/0.1524, allocations: 4.094 kB / 399.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.1532, allocations: 0.5641 MB / 399.8 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.83e-05/0.1533, allocations: 100.7 kB / 399.9 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.1533, allocations: 12 kB / 399.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.1534, allocations: 11.98 kB / 399.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.824e-05/0.1535, allocations: 19.97 kB / 400 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-05/0.1535, allocations: 16 kB / 400 MB, free: 5.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002032/0.1537, allocations: 211 kB / 400.2 MB, free: 5.402 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1538, allocations: 7.938 kB / 400.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004592/0.1542, allocations: 120.1 kB / 400.3 MB, free: 5.277 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.0001693/0.1544, allocations: 119.2 kB / 400.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006013/0.155, allocations: 304.6 kB / 400.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.155, allocations: 0 / 400.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.1553, allocations: 139.8 kB / 400.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004848/0.1558, allocations: 69.42 kB / 400.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.1584, allocations: 1.578 MB / 402.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/0.159, allocations: 0.9171 MB / 403.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.1592, allocations: 51.33 kB / 403.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.1593, allocations: 31.38 kB / 403.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1593, allocations: 4 kB / 403.5 MB, free: 2 MB / 334.1 MB Notification: Performance of Templates: time 0.009738/0.169, allocations: 3.822 MB / 407.3 MB, free: 14.17 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)