Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 102.8 kB / 16.94 MB, free: 5.977 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.001053/0.001053, allocations: 178.1 kB / 17.82 MB, free: 5.652 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.436/1.436, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.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.0005137/0.0005139, allocations: 12.78 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.11, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005053/0.1151, allocations: 4.388 MB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003364/0.1185, allocations: 2.019 MB / 334.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006373/0.1192, allocations: 31.81 kB / 334.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003922/0.1196, allocations: 158.8 kB / 335 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006701/0.1202, allocations: 303.1 kB / 335.3 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1213, allocations: 343.3 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009683/0.1223, allocations: 0.6594 MB / 336.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000605/0.1229, allocations: 425.5 kB / 336.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.1232, allocations: 223 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002981/0.1235, allocations: 266.6 kB / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.605e-05/0.1236, allocations: 35.94 kB / 337.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.1238, allocations: 75.91 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.1239, allocations: 119.5 kB / 337.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.1241, allocations: 169.3 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007807/0.1249, allocations: 0.8844 MB / 338.5 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1249, allocations: 0 / 338.5 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1249, allocations: 0 / 338.5 MB, free: 9.879 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1249, allocations: 0 / 338.5 MB, free: 9.879 MB / 286.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.001408/0.1263, allocations: 0.889 MB / 339.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.1264, allocations: 12.03 kB / 339.4 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001711/0.1266, allocations: 135.3 kB / 339.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.1267, allocations: 86.97 kB / 339.6 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006936/0.1274, allocations: 497.4 kB / 340.1 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-05/0.1275, allocations: 66 kB / 340.1 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.1276, allocations: 88 kB / 340.2 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.1291, allocations: 0.7849 MB / 341 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.649e-05/0.1292, allocations: 11.84 kB / 341 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.1293, allocations: 36 kB / 341.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/0.1293, allocations: 23.98 kB / 341.1 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000962/0.1303, allocations: 499.6 kB / 341.6 MB, free: 6.641 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003545/0.1338, allocations: 2.911 MB / 344.5 MB, free: 3.602 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000582/0.1344, allocations: 219.3 kB / 344.7 MB, free: 3.379 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003051/0.1347, allocations: 251.3 kB / 344.9 MB, free: 3.078 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.1348, allocations: 38.56 kB / 345 MB, free: 3.031 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 4.749e-06/0.1348, allocations: 4 kB / 345 MB, free: 3.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002578/0.1374, allocations: 1.267 MB / 346.2 MB, free: 1.664 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.1375, allocations: 59.41 kB / 346.3 MB, free: 1.594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.1379, allocations: 296.6 kB / 346.6 MB, free: 1.297 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1379, allocations: 29.7 kB / 346.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/0.1382, allocations: 402.5 kB / 347 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.1383, allocations: 134.1 kB / 347.1 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.641e-05/0.1384, allocations: 12 kB / 347.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.1386, allocations: 346.8 kB / 347.5 MB, free: 380 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.1388, allocations: 109.1 kB / 347.6 MB, free: 272 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003875/0.1392, allocations: 254.5 kB / 347.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.1394, allocations: 155.6 kB / 348 MB, free: 15.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1395, allocations: 0 / 348 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007319/0.1402, allocations: 461.4 kB / 348.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.1402, allocations: 8 kB / 348.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.1402, allocations: 7.938 kB / 348.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002108/0.1405, allocations: 32.84 kB / 348.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/0.1409, allocations: 111.8 kB / 348.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004335/0.1414, allocations: 0.5567 MB / 349.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.1416, allocations: 16 kB / 349.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.093e-05/0.1417, allocations: 20 kB / 349.2 MB, free: 14.57 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004144/0.1421, allocations: 221.6 kB / 349.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.1422, allocations: 43.53 kB / 349.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006076/0.1428, allocations: 322.1 kB / 349.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1429, allocations: 4 kB / 349.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.1429, allocations: 0 / 349.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1429, allocations: 0 / 349.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.1445, allocations: 1.038 MB / 350.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1445, allocations: 4 kB / 350.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003397/0.1448, allocations: 79.89 kB / 350.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001241/0.145, allocations: 33 kB / 350.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.145, allocations: 12 kB / 350.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003403/0.1453, allocations: 0.5485 MB / 351.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1454, allocations: 4.031 kB / 351.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008033/0.1462, allocations: 0.6032 MB / 352.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.652e-05/0.1463, allocations: 112.8 kB / 352.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.1463, allocations: 8 kB / 352.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.1465, allocations: 15.94 kB / 352.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.1466, allocations: 20.06 kB / 352.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1466, allocations: 19.89 kB / 352.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.1468, allocations: 211.1 kB / 352.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1468, allocations: 0 / 352.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005263/0.1474, allocations: 120 kB / 352.6 MB, free: 10.96 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001315/0.1487, allocations: 1.511 MB / 354.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006136/0.1493, allocations: 310.2 kB / 354.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1493, allocations: 0 / 354.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002621/0.1496, allocations: 135.8 kB / 354.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.15, allocations: 57.8 kB / 354.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00617/0.1562, allocations: 6.254 MB / 360.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005811/0.1568, allocations: 0.9404 MB / 361.8 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001778/0.157, allocations: 47.33 kB / 361.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.1573, allocations: 251.3 kB / 362.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.794e-06/0.1573, allocations: 0 / 362.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.1825, allocations: 8.048 MB / 370.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002429/0.1828, allocations: 225.4 kB / 370.3 MB, free: 8.938 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.051, allocations: 0 / 370.3 MB, free: 8.938 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat