Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 116.8 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 189.2 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2417/0.2417, allocations: 44.92 MB / 349.6 MB, free: 1.797 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 67.48 kB / 491.8 MB, free: 30.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1351, allocations: 64.27 MB / 0.543 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003571/0.1387, allocations: 1.898 MB / 0.5448 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1397, allocations: 0.5026 MB / 0.5453 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1398, allocations: 4 kB / 0.5453 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.14, allocations: 27.8 kB / 0.5454 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1401, allocations: 35.64 kB / 0.5454 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.1403, allocations: 35.89 kB / 0.5454 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002366/0.1405, allocations: 151.3 kB / 0.5456 GB, free: 1.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.1407, allocations: 41.94 kB / 0.5456 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.1408, allocations: 63.78 kB / 0.5457 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.1409, allocations: 67.69 kB / 0.5457 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.141, allocations: 12 kB / 0.5458 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.662e-05/0.141, allocations: 12 kB / 0.5458 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.053e-05/0.141, allocations: 35.86 kB / 0.5458 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.141e-05/0.1411, allocations: 63.67 kB / 0.5459 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.1414, allocations: 147.4 kB / 0.546 GB, free: 1.008 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1414, allocations: 0 / 0.546 GB, free: 1.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1414, allocations: 0 / 0.546 GB, free: 1.008 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1414, allocations: 0 / 0.546 GB, free: 1.008 MB / 398.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.0007084/0.1421, allocations: 442.8 kB / 0.5464 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1421, allocations: 8.031 kB / 0.5464 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.39e-05/0.1422, allocations: 42.75 kB / 0.5465 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.1422, allocations: 16.89 kB / 0.5465 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.1426, allocations: 216.1 kB / 0.5467 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.1426, allocations: 12.38 kB / 0.5467 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.1427, allocations: 16.36 kB / 0.5467 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.1429, allocations: 125.6 kB / 0.5468 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.143, allocations: 3.984 kB / 0.5468 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.143, allocations: 11.94 kB / 0.5469 GB, free: 32 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.143, allocations: 4 kB / 0.5469 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.1432, allocations: 83.95 kB / 0.5469 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008179/0.144, allocations: 460.3 kB / 0.5474 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.1443, allocations: 114.4 kB / 0.5475 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.1444, allocations: 52.78 kB / 0.5475 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.1444, allocations: 4 kB / 0.5475 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.1444, allocations: 34.56 kB / 0.5476 GB, free: 15.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.743e-06/0.1444, allocations: 0 / 0.5476 GB, free: 15.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001639/0.1461, allocations: 0.8153 MB / 0.5484 GB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.1461, allocations: 51.41 kB / 0.5484 GB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.1463, allocations: 144.5 kB / 0.5486 GB, free: 14.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1463, allocations: 29.7 kB / 0.5486 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.118e-05/0.1464, allocations: 112.4 kB / 0.5487 GB, free: 13.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.1465, allocations: 75.38 kB / 0.5488 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.501e-05/0.1465, allocations: 37.7 kB / 0.5488 GB, free: 13.83 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.1467, allocations: 326.8 kB / 0.5491 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.1468, allocations: 47.97 kB / 0.5492 GB, free: 13.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.1469, allocations: 80.84 kB / 0.5492 GB, free: 13.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.1472, allocations: 127.4 kB / 0.5494 GB, free: 13.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1472, allocations: 4 kB / 0.5494 GB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004004/0.1476, allocations: 206.2 kB / 0.5496 GB, free: 13.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1476, allocations: 9.656 kB / 0.5496 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1476, allocations: 4 kB / 0.5496 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/0.1478, allocations: 40.83 kB / 0.5496 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.148, allocations: 39.92 kB / 0.5497 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/0.1497, allocations: 1.744 MB / 0.5514 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.481e-05/0.1498, allocations: 3.984 kB / 0.5514 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.1498, allocations: 12 kB / 0.5514 GB, free: 11.02 MB / 414.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.0001319/0.15, allocations: 117.8 kB / 0.5515 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.15, allocations: 15.91 kB / 0.5515 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.123e-05/0.1501, allocations: 21.19 kB / 0.5515 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1501, allocations: 3.938 kB / 0.5515 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1501, allocations: 4.062 kB / 0.5515 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.1501, allocations: 7.984 kB / 0.5515 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008503/0.1509, allocations: 0.539 MB / 0.5521 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1509, allocations: 0 / 0.5521 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.1511, allocations: 35.92 kB / 0.5521 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.1512, allocations: 36.88 kB / 0.5521 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.1512, allocations: 3.984 kB / 0.5521 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.1526, allocations: 1.481 MB / 0.5536 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1526, allocations: 0 / 0.5536 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005373/0.1531, allocations: 348.9 kB / 0.5539 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.082e-05/0.1532, allocations: 97.09 kB / 0.554 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.1532, allocations: 4 kB / 0.554 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.462e-05/0.1533, allocations: 7.938 kB / 0.554 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.1534, allocations: 23.92 kB / 0.554 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.1534, allocations: 4 kB / 0.554 GB, free: 8.031 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.306e-05/0.1535, allocations: 110.3 kB / 0.5541 GB, free: 7.926 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1535, allocations: 0 / 0.5541 GB, free: 7.926 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.1538, allocations: 40 kB / 0.5542 GB, free: 7.887 MB / 414.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.0009157/0.1548, allocations: 0.8777 MB / 0.555 GB, free: 6.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000624/0.1554, allocations: 258.8 kB / 0.5553 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1554, allocations: 0 / 0.5553 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002748/0.1557, allocations: 186.5 kB / 0.5555 GB, free: 6.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.156, allocations: 19.98 kB / 0.5555 GB, free: 6.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.1589, allocations: 2.058 MB / 0.5575 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.1593, allocations: 0.7166 MB / 0.5582 GB, free: 3.586 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.088e-05/0.1594, allocations: 13.42 kB / 0.5582 GB, free: 3.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.893e-05/0.1595, allocations: 43.42 kB / 0.5583 GB, free: 3.531 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1595, allocations: 0 / 0.5583 GB, free: 3.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.1939, allocations: 3.445 MB / 0.5616 GB, free: 228 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.79, allocations: 11.53 kB / 0.5616 GB, free: 224 kB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.020372667815536]