Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.215/0.215, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001508, allocations: 77.91 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004012/0.1311, allocations: 1.919 MB / 482 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.1325, allocations: 0.5688 MB / 482.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.1327, allocations: 4 kB / 482.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1329, allocations: 15.8 kB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.1331, allocations: 43.62 kB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.1335, allocations: 47.88 kB / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002711/0.1338, allocations: 147.3 kB / 482.9 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.134, allocations: 61.64 kB / 482.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.1342, allocations: 67.72 kB / 483 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.1343, allocations: 63.69 kB / 483.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.1344, allocations: 12 kB / 483.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.1345, allocations: 24 kB / 483.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.889e-05/0.1345, allocations: 23.92 kB / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.629e-05/0.1346, allocations: 63.67 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1349, allocations: 159.7 kB / 483.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1349, allocations: 3.938 kB / 483.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1349, allocations: 0 / 483.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1349, allocations: 4 kB / 483.3 MB, free: 1.961 MB / 350.1 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.0006406/0.1355, allocations: 434.9 kB / 483.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.1356, allocations: 16.03 kB / 483.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.455e-05/0.1357, allocations: 46.73 kB / 483.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1358, allocations: 20.83 kB / 483.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.1361, allocations: 208 kB / 484.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.1361, allocations: 12.38 kB / 484.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.1362, allocations: 16.38 kB / 484.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.1364, allocations: 129.5 kB / 484.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1365, allocations: 0 / 484.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1365, allocations: 8 kB / 484.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1365, allocations: 8 kB / 484.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.1367, allocations: 75.95 kB / 484.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007056/0.1374, allocations: 468.1 kB / 484.8 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.1376, allocations: 126.4 kB / 484.9 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1378, allocations: 60.83 kB / 484.9 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.1378, allocations: 3.938 kB / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.1378, allocations: 38.56 kB / 485 MB, free: 156 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.152e-06/0.1378, allocations: 0 / 485 MB, free: 156 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00157/0.1394, allocations: 0.8078 MB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.1395, allocations: 55.41 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.1396, allocations: 136.1 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1396, allocations: 37.7 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.438e-05/0.1397, allocations: 108.3 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.953e-05/0.1397, allocations: 70.98 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.1398, allocations: 37.7 kB / 486.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1399, allocations: 326.8 kB / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.14, allocations: 43.92 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.1402, allocations: 79.34 kB / 486.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.1404, allocations: 139.2 kB / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1404, allocations: 0 / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003664/0.1408, allocations: 202.2 kB / 487 MB, free: 13.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1408, allocations: 18.62 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1408, allocations: 0 / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001523/0.141, allocations: 40.83 kB / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.1411, allocations: 31.98 kB / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.1427, allocations: 1.737 MB / 488.8 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.214e-05/0.1428, allocations: 8.031 kB / 488.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.1428, allocations: 8.062 kB / 488.8 MB, free: 11.98 MB / 366.1 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 (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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.143, allocations: 129.8 kB / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.857e-05/0.143, allocations: 7.906 kB / 489 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.908e-05/0.1431, allocations: 29.11 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1431, allocations: 7.938 kB / 489 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1431, allocations: 0 / 489 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1431, allocations: 0 / 489 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/0.1439, allocations: 0.5544 MB / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1439, allocations: 0 / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.1441, allocations: 35.92 kB / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.1442, allocations: 40.89 kB / 489.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1442, allocations: 4 kB / 489.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.1454, allocations: 1.473 MB / 491.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1454, allocations: 3.938 kB / 491.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004848/0.1459, allocations: 352.9 kB / 491.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.747e-05/0.146, allocations: 88.95 kB / 491.5 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.146, allocations: 4 kB / 491.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-05/0.1461, allocations: 8 kB / 491.6 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.1462, allocations: 19.91 kB / 491.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.1462, allocations: 8 kB / 491.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.084e-05/0.1463, allocations: 106 kB / 491.7 MB, free: 8.875 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1463, allocations: 0 / 491.7 MB, free: 8.875 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1466, allocations: 44 kB / 491.7 MB, free: 8.832 MB / 366.1 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 (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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007291/0.1474, allocations: 0.8701 MB / 492.6 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005034/0.1479, allocations: 266.6 kB / 492.9 MB, free: 7.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1479, allocations: 0 / 492.9 MB, free: 7.656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.1481, allocations: 194.5 kB / 493.1 MB, free: 7.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.1485, allocations: 20 kB / 493.1 MB, free: 7.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.151, allocations: 2.057 MB / 495.1 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.1513, allocations: 0.7204 MB / 495.9 MB, free: 4.516 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.221e-05/0.1513, allocations: 9.422 kB / 495.9 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.531e-05/0.1514, allocations: 43.42 kB / 495.9 MB, free: 4.465 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1514, allocations: 4 kB / 495.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02492/0.1763, allocations: 3.359 MB / 499.3 MB, free: 1.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.639/9.816, allocations: 11.81 kB / 499.3 MB, free: 1.215 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches