Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002478/0.002478, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.196/2.196, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001858/0.001859, allocations: 86.89 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2938/0.2938, allocations: 43.57 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004707/0.0004708, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1232, allocations: 58.87 MB / 490.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002784/0.1261, allocations: 1.525 MB / 491.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1273, allocations: 0.5078 MB / 492.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1275, allocations: 0 / 492.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 4.637e-05/0.1275, allocations: 15.92 kB / 492.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.1277, allocations: 47.83 kB / 492.4 MB, free: 7.117 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001933/0.1279, allocations: 23.98 kB / 492.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.1282, allocations: 99.78 kB / 492.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.1284, allocations: 44.89 kB / 492.6 MB, free: 6.949 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.1285, allocations: 55.78 kB / 492.6 MB, free: 6.895 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.1287, allocations: 51.77 kB / 492.7 MB, free: 6.844 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.1287, allocations: 8 kB / 492.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.202e-05/0.1287, allocations: 4 kB / 492.7 MB, free: 6.832 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.267e-05/0.1288, allocations: 19.92 kB / 492.7 MB, free: 6.812 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/0.1289, allocations: 49.64 kB / 492.8 MB, free: 6.758 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.1291, allocations: 111.9 kB / 492.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.1291, allocations: 0 / 492.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1291, allocations: 0 / 492.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1291, allocations: 0 / 492.9 MB, free: 6.648 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007444/0.1299, allocations: 418.8 kB / 493.3 MB, free: 6.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1299, allocations: 12.03 kB / 493.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.313e-05/0.13, allocations: 42.56 kB / 493.3 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.1301, allocations: 15.84 kB / 493.4 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.1304, allocations: 202.8 kB / 493.6 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.1304, allocations: 15.94 kB / 493.6 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.1304, allocations: 15.98 kB / 493.6 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.1308, allocations: 129.6 kB / 493.7 MB, free: 5.711 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.1309, allocations: 0 / 493.7 MB, free: 5.711 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.1309, allocations: 8 kB / 493.7 MB, free: 5.703 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.1309, allocations: 7.953 kB / 493.7 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.1313, allocations: 83.94 kB / 493.8 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1323, allocations: 480.1 kB / 494.3 MB, free: 5.094 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.1327, allocations: 122.5 kB / 494.4 MB, free: 4.965 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.1327, allocations: 7.938 kB / 494.4 MB, free: 4.957 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.1328, allocations: 34.56 kB / 494.4 MB, free: 4.914 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.314e-06/0.1328, allocations: 0 / 494.4 MB, free: 4.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.002237/0.135, allocations: 0.8178 MB / 495.3 MB, free: 4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.1351, allocations: 55.41 kB / 495.3 MB, free: 3.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.1353, allocations: 137.6 kB / 495.4 MB, free: 3.793 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.1353, allocations: 29.7 kB / 495.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.1355, allocations: 182.7 kB / 495.6 MB, free: 3.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.73e-05/0.1356, allocations: 63.09 kB / 495.7 MB, free: 3.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.1356, allocations: 4 kB / 495.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1358, allocations: 326.8 kB / 496 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.1359, allocations: 40.36 kB / 496.1 MB, free: 3.145 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.1362, allocations: 76.16 kB / 496.1 MB, free: 3.059 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.1364, allocations: 67.92 kB / 496.2 MB, free: 2.992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1364, allocations: 0 / 496.2 MB, free: 2.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000694/0.1371, allocations: 202.2 kB / 496.4 MB, free: 2.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.1372, allocations: 11.98 kB / 496.4 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.1372, allocations: 0 / 496.4 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002768/0.1375, allocations: 40.84 kB / 496.5 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.1378, allocations: 35.97 kB / 496.5 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/0.1399, allocations: 1.565 MB / 498.1 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.1401, allocations: 12.41 kB / 498.1 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.1401, allocations: 8 kB / 498.1 MB, free: 0.9766 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.1403, allocations: 129.9 kB / 498.2 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/0.1403, allocations: 15.81 kB / 498.2 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.1404, allocations: 25.17 kB / 498.2 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.1404, allocations: 0 / 498.2 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/0.1404, allocations: 4 kB / 498.3 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1404, allocations: 4 kB / 498.3 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.1416, allocations: 0.5493 MB / 498.8 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1416, allocations: 0 / 498.8 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003229/0.142, allocations: 39.88 kB / 498.8 MB, free: 148 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.1422, allocations: 32.83 kB / 498.9 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1422, allocations: 8.031 kB / 498.9 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.1438, allocations: 1.39 MB / 0.4886 GB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1439, allocations: 4.062 kB / 0.4886 GB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008276/0.1447, allocations: 355.1 kB / 0.4889 GB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.014e-05/0.1448, allocations: 96.98 kB / 0.489 GB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.1449, allocations: 3.938 kB / 0.489 GB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.145, allocations: 8 kB / 0.489 GB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.796e-05/0.1451, allocations: 15.97 kB / 0.489 GB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1451, allocations: 4 kB / 0.489 GB, free: 14.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.1453, allocations: 111.2 kB / 0.4891 GB, free: 13.94 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1453, allocations: 0 / 0.4891 GB, free: 13.94 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.1458, allocations: 40 kB / 0.4892 GB, free: 13.9 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.147, allocations: 0.9638 MB / 0.4901 GB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008127/0.1479, allocations: 258.5 kB / 0.4903 GB, free: 12.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.1479, allocations: 7.938 kB / 0.4904 GB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004555/0.1484, allocations: 198.8 kB / 0.4905 GB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.1488, allocations: 15.92 kB / 0.4906 GB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003135/0.152, allocations: 1.569 MB / 0.4921 GB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.1524, allocations: 0.7282 MB / 0.4928 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1525, allocations: 39.42 kB / 0.4928 GB, free: 9.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1526, allocations: 4 kB / 0.4928 GB, free: 9.977 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.941/3.093, allocations: 2.998 MB / 0.4958 GB, free: 6.977 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat