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.001277/0.001277, allocations: 94.45 kB / 16.3 MB, free: 5.996 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.001397/0.001397, allocations: 179.7 kB / 17.2 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.451/1.451, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002485, allocations: 6.156 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005143/0.1147, allocations: 4.392 MB / 355.6 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003335/0.118, allocations: 1.975 MB / 357.6 MB, free: 5.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006919/0.1188, allocations: 39.75 kB / 357.6 MB, free: 5.211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003792/0.1191, allocations: 154.9 kB / 357.8 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006032/0.1198, allocations: 307 kB / 358.1 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009076/0.1207, allocations: 351.3 kB / 358.4 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009206/0.1216, allocations: 0.6632 MB / 359.1 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000566/0.1222, allocations: 417.5 kB / 359.5 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.1225, allocations: 231 kB / 359.7 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.1228, allocations: 266.6 kB / 360 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.271e-05/0.1228, allocations: 32 kB / 360 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.123, allocations: 71.98 kB / 360.1 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.1231, allocations: 127.5 kB / 360.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.1233, allocations: 173.3 kB / 360.4 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007608/0.1241, allocations: 0.8842 MB / 361.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.1241, allocations: 0 / 361.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1241, allocations: 0 / 361.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1241, allocations: 0 / 361.3 MB, free: 1.535 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.001377/0.1255, allocations: 0.8891 MB / 362.2 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1255, allocations: 8.031 kB / 362.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.1257, allocations: 139.2 kB / 362.3 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.1258, allocations: 86.97 kB / 362.4 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006642/0.1265, allocations: 497.6 kB / 362.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.1265, allocations: 62 kB / 362.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1266, allocations: 87.75 kB / 363 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.128, allocations: 0.7888 MB / 363.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.128, allocations: 7.953 kB / 363.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.1281, allocations: 36 kB / 363.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.1281, allocations: 24 kB / 363.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009187/0.129, allocations: 0.4957 MB / 364.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003361/0.1324, allocations: 2.903 MB / 367.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005151/0.1329, allocations: 219.3 kB / 367.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000275/0.1332, allocations: 255.3 kB / 367.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.1333, allocations: 38.52 kB / 367.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.653e-06/0.1333, allocations: 0 / 367.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.00216/0.1354, allocations: 1.268 MB / 369 MB, free: 9.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.1355, allocations: 59.34 kB / 369.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000272/0.1358, allocations: 300.4 kB / 369.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.1358, allocations: 33.7 kB / 369.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.136, allocations: 390.6 kB / 369.8 MB, free: 8.535 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.788e-05/0.1361, allocations: 142 kB / 369.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-05/0.1361, allocations: 12 kB / 370 MB, free: 8.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1363, allocations: 350.8 kB / 370.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.1364, allocations: 109.1 kB / 370.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.1367, allocations: 246.7 kB / 370.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.137, allocations: 143.9 kB / 370.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.137, allocations: 4 kB / 370.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006904/0.1377, allocations: 465.4 kB / 371.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.1377, allocations: 8 kB / 371.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1377, allocations: 7.938 kB / 371.3 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002102/0.1379, allocations: 36.84 kB / 371.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.1383, allocations: 111.8 kB / 371.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003452/0.1386, allocations: 0.5561 MB / 372 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.1388, allocations: 20.16 kB / 372 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.1389, allocations: 23.98 kB / 372 MB, free: 6.227 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.0002736/0.1391, allocations: 217.7 kB / 372.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.1392, allocations: 35.62 kB / 372.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005659/0.1398, allocations: 330.2 kB / 372.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1398, allocations: 0 / 372.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1398, allocations: 4 kB / 372.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1398, allocations: 0 / 372.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.1411, allocations: 1.031 MB / 373.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1411, allocations: 0 / 373.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.1415, allocations: 79.89 kB / 373.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001244/0.1416, allocations: 36.88 kB / 373.7 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.1417, allocations: 8 kB / 373.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003332/0.142, allocations: 0.5524 MB / 374.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.142, allocations: 4.031 kB / 374.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007366/0.1427, allocations: 0.611 MB / 374.9 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.1428, allocations: 104.7 kB / 375 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.596e-05/0.1429, allocations: 12 kB / 375 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.1431, allocations: 15.94 kB / 375 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.1431, allocations: 23.97 kB / 375.1 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.1431, allocations: 8 kB / 375.1 MB, free: 2.961 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1434, allocations: 207.1 kB / 375.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1434, allocations: 7.938 kB / 375.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004949/0.1439, allocations: 120 kB / 375.4 MB, free: 2.633 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.001185/0.145, allocations: 1.51 MB / 376.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006202/0.1457, allocations: 312.6 kB / 377.2 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.1457, allocations: 4.125 kB / 377.2 MB, free: 0.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002671/0.146, allocations: 135.8 kB / 377.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.1464, allocations: 59.91 kB / 377.4 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005496/0.1519, allocations: 6.243 MB / 383.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.1526, allocations: 0.9405 MB / 384.6 MB, free: 9.203 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002014/0.1528, allocations: 47.33 kB / 384.6 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003229/0.1531, allocations: 239.4 kB / 384.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1531, allocations: 0 / 384.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.1751, allocations: 8.062 MB / 392.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.1753, allocations: 222 kB / 393.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.014, allocations: 4 kB / 393.1 MB, free: 0.8203 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