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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001747/0.001747, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002458/0.002458, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.561/1.561, allocations: 230.5 MB / 254 MB, free: 15.14 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2687/0.2687, allocations: 46.91 MB / 357 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 79.88 kB / 0.491 GB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1358, allocations: 66.04 MB / 0.5554 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003707/0.1395, allocations: 1.928 MB / 0.5573 GB, free: 3.602 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1407, allocations: 0.5727 MB / 0.5579 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.1408, allocations: 3.938 kB / 0.5579 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.1409, allocations: 23.78 kB / 0.5579 GB, free: 2.996 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.141, allocations: 39.64 kB / 0.5579 GB, free: 2.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.1413, allocations: 47.88 kB / 0.558 GB, free: 2.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002423/0.1415, allocations: 151.2 kB / 0.5581 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.1417, allocations: 49.64 kB / 0.5582 GB, free: 2.711 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.1419, allocations: 67.78 kB / 0.5583 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.142, allocations: 63.7 kB / 0.5583 GB, free: 2.582 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.1421, allocations: 12 kB / 0.5583 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.1421, allocations: 15.98 kB / 0.5583 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.493e-05/0.1422, allocations: 35.84 kB / 0.5584 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.99e-05/0.1422, allocations: 67.67 kB / 0.5584 GB, free: 2.453 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.1425, allocations: 151.3 kB / 0.5586 GB, free: 2.305 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1425, allocations: 4 kB / 0.5586 GB, free: 2.301 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1425, allocations: 0 / 0.5586 GB, free: 2.301 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1425, allocations: 0 / 0.5586 GB, free: 2.301 MB / 414.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.0006767/0.1432, allocations: 449.6 kB / 0.559 GB, free: 1.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.1432, allocations: 8.031 kB / 0.559 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.984e-05/0.1433, allocations: 46.69 kB / 0.5591 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.1434, allocations: 24.83 kB / 0.5591 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.1438, allocations: 212.2 kB / 0.5593 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.1438, allocations: 16.25 kB / 0.5593 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.1438, allocations: 16.33 kB / 0.5593 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.1441, allocations: 129.6 kB / 0.5594 GB, free: 1.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1441, allocations: 0 / 0.5594 GB, free: 1.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1441, allocations: 7.984 kB / 0.5595 GB, free: 1.312 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1441, allocations: 4 kB / 0.5595 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002121/0.1443, allocations: 91.92 kB / 0.5595 GB, free: 1.219 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000766/0.1451, allocations: 460.3 kB / 0.56 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.1453, allocations: 118.5 kB / 0.5601 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.1455, allocations: 48.84 kB / 0.5601 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1455, allocations: 4 kB / 0.5601 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.1455, allocations: 30.56 kB / 0.5602 GB, free: 0.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.1455, allocations: 3.938 kB / 0.5602 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001665/0.1472, allocations: 0.8167 MB / 0.561 GB, free: 15.58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.1472, allocations: 55.41 kB / 0.561 GB, free: 15.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.1474, allocations: 140 kB / 0.5612 GB, free: 15.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.1474, allocations: 37.7 kB / 0.5612 GB, free: 15.33 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.1475, allocations: 108.4 kB / 0.5613 GB, free: 15.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.56e-05/0.1476, allocations: 79.28 kB / 0.5614 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.385e-05/0.1476, allocations: 29.72 kB / 0.5614 GB, free: 15.11 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1478, allocations: 326.8 kB / 0.5617 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.1479, allocations: 43.97 kB / 0.5618 GB, free: 14.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.148, allocations: 79.34 kB / 0.5618 GB, free: 14.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.1483, allocations: 131.3 kB / 0.562 GB, free: 14.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1483, allocations: 0 / 0.562 GB, free: 14.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004944/0.1487, allocations: 210.2 kB / 0.5622 GB, free: 14.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.1488, allocations: 7.938 kB / 0.5622 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1488, allocations: 8.031 kB / 0.5622 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.149, allocations: 44.77 kB / 0.5622 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.1491, allocations: 31.98 kB / 0.5623 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.151, allocations: 1.74 MB / 0.564 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.836e-05/0.1511, allocations: 4 kB / 0.564 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.1511, allocations: 11.94 kB / 0.564 GB, free: 12.3 MB / 430.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.0001369/0.1512, allocations: 129.8 kB / 0.5641 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.1513, allocations: 15.91 kB / 0.5641 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.1513, allocations: 25.17 kB / 0.5641 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1513, allocations: 3.938 kB / 0.5641 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1513, allocations: 0 / 0.5641 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1513, allocations: 4 kB / 0.5641 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008666/0.1522, allocations: 0.5482 MB / 0.5647 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1522, allocations: 0 / 0.5647 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.1524, allocations: 31.98 kB / 0.5647 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.1525, allocations: 32.83 kB / 0.5647 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1525, allocations: 4 kB / 0.5647 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001454/0.1539, allocations: 1.481 MB / 0.5662 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1539, allocations: 0 / 0.5662 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005574/0.1545, allocations: 345 kB / 0.5665 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.1546, allocations: 97.03 kB / 0.5666 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.1546, allocations: 0 / 0.5666 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.894e-05/0.1547, allocations: 8 kB / 0.5666 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.1548, allocations: 19.86 kB / 0.5666 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.1548, allocations: 12.06 kB / 0.5666 GB, free: 9.301 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001032/0.1549, allocations: 111 kB / 0.5668 GB, free: 9.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1549, allocations: 0 / 0.5668 GB, free: 9.195 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.1552, allocations: 44 kB / 0.5668 GB, free: 9.152 MB / 430.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.0009332/0.1562, allocations: 0.8773 MB / 0.5676 GB, free: 8.246 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006188/0.1568, allocations: 246.8 kB / 0.5679 GB, free: 7.992 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1568, allocations: 0 / 0.5679 GB, free: 7.992 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.1571, allocations: 196.8 kB / 0.5681 GB, free: 7.789 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1575, allocations: 25.09 kB / 0.5681 GB, free: 7.766 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002956/0.1604, allocations: 2.057 MB / 0.5701 GB, free: 5.602 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.1609, allocations: 0.7243 MB / 0.5708 GB, free: 4.848 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.819e-05/0.1609, allocations: 17.41 kB / 0.5708 GB, free: 4.832 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.01e-05/0.161, allocations: 43.36 kB / 0.5709 GB, free: 4.789 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.161, allocations: 0 / 0.5709 GB, free: 4.789 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.1929, allocations: 3.483 MB / 0.5743 GB, free: 1.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.81, allocations: 0 / 0.5743 GB, free: 1.43 MB / 430.1 MB " [Timeout remaining time 649] (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.000219912 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.334349944954738]