Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.0008316/0.0008316, allocations: 91.97 kB / 16.31 MB, free: 6.02 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.00101/0.00101, allocations: 178.7 kB / 17.21 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002635, allocations: 6.938 kB / 300.9 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.115, allocations: 50.42 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005677/0.1207, allocations: 4.664 MB / 356 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003916/0.1247, allocations: 1.924 MB / 357.9 MB, free: 4.988 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006968/0.1254, allocations: 35.75 kB / 358 MB, free: 4.953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003675/0.1258, allocations: 142.8 kB / 358.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003496/0.1262, allocations: 134.8 kB / 358.2 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.1269, allocations: 255.4 kB / 358.5 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008787/0.1278, allocations: 0.8996 MB / 359.4 MB, free: 3.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006191/0.1284, allocations: 425.5 kB / 359.8 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.1287, allocations: 231 kB / 360 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.129, allocations: 262.6 kB / 360.3 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.563e-05/0.1291, allocations: 32 kB / 360.3 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.1293, allocations: 87.91 kB / 360.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1294, allocations: 115.5 kB / 360.5 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.1295, allocations: 177.3 kB / 360.7 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007804/0.1303, allocations: 0.8803 MB / 361.6 MB, free: 1.305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1303, allocations: 4 kB / 361.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1303, allocations: 0 / 361.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.1304, allocations: 0 / 361.6 MB, free: 1.301 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.001223/0.1316, allocations: 0.893 MB / 362.5 MB, free: 364 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1316, allocations: 8.031 kB / 362.5 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.1318, allocations: 135.2 kB / 362.6 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.1319, allocations: 90.95 kB / 362.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006402/0.1326, allocations: 497.5 kB / 363.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.1326, allocations: 66 kB / 363.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.1327, allocations: 87.91 kB / 363.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.1341, allocations: 0.7966 MB / 364.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.288e-05/0.1341, allocations: 11.94 kB / 364.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.867e-05/0.1342, allocations: 36 kB / 364.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.1342, allocations: 20 kB / 364.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009227/0.1351, allocations: 0.4957 MB / 364.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.1385, allocations: 2.883 MB / 367.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.139, allocations: 240.7 kB / 367.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.1392, allocations: 96.83 kB / 367.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000281/0.1395, allocations: 251.3 kB / 368.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1395, allocations: 38.55 kB / 368.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.004e-06/0.1395, allocations: 0 / 368.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002333/0.1419, allocations: 1.272 MB / 369.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.1419, allocations: 63.34 kB / 369.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.1423, allocations: 300.4 kB / 369.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.1423, allocations: 33.7 kB / 369.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/0.1426, allocations: 390.6 kB / 370.2 MB, free: 8.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.1427, allocations: 138 kB / 370.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.88e-05/0.1427, allocations: 12 kB / 370.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1429, allocations: 350.8 kB / 370.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.1431, allocations: 109.1 kB / 370.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.1434, allocations: 250.7 kB / 371.1 MB, free: 7.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.1437, allocations: 147.9 kB / 371.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1437, allocations: 0 / 371.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006805/0.1444, allocations: 465.4 kB / 371.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1444, allocations: 12 kB / 371.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1444, allocations: 8 kB / 371.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.1446, allocations: 32.84 kB / 371.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.145, allocations: 111.8 kB / 371.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004035/0.1454, allocations: 0.5678 MB / 372.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.1455, allocations: 12 kB / 372.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.1456, allocations: 28.05 kB / 372.4 MB, free: 5.867 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.000282/0.1459, allocations: 213.7 kB / 372.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.667e-05/0.1459, allocations: 39.61 kB / 372.7 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006114/0.1465, allocations: 324.4 kB / 373 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1466, allocations: 4 kB / 373 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1466, allocations: 0 / 373 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1466, allocations: 0 / 373 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.1479, allocations: 1.03 MB / 374 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.1479, allocations: 4 kB / 374 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/0.1483, allocations: 79.89 kB / 374.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.1484, allocations: 32.84 kB / 374.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.1484, allocations: 8 kB / 374.1 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003595/0.1488, allocations: 0.5565 MB / 374.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1488, allocations: 0 / 374.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007824/0.1496, allocations: 0.5558 MB / 375.3 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.19e-05/0.1497, allocations: 100.7 kB / 375.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.241e-05/0.1497, allocations: 15.95 kB / 375.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.1499, allocations: 19.94 kB / 375.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-05/0.15, allocations: 27.95 kB / 375.4 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.15, allocations: 12 kB / 375.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.1502, allocations: 207.1 kB / 375.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1502, allocations: 0 / 375.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005398/0.1508, allocations: 116 kB / 375.7 MB, free: 2.367 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.001263/0.1521, allocations: 1.108 MB / 376.9 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000659/0.1527, allocations: 308.6 kB / 377.2 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1527, allocations: 0 / 377.2 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.153, allocations: 143.9 kB / 377.3 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/0.1535, allocations: 64.12 kB / 377.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004905/0.1585, allocations: 3.402 MB / 380.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.159, allocations: 0.9249 MB / 381.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001726/0.1592, allocations: 50.08 kB / 381.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.1595, allocations: 239.4 kB / 382 MB, free: 11.95 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1595, allocations: 0 / 382 MB, free: 11.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.1806, allocations: 8.07 MB / 390 MB, free: 4.09 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/0.1809, allocations: 231.3 kB / 390.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.103, allocations: 0 / 390.3 MB, free: 3.84 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat