Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 108.3 kB / 19.7 MB, free: 1.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 218.3 kB / 22.99 MB, free: 4.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 207.7 MB / 233.8 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2127/0.2127, allocations: 44.27 MB / 330.3 MB, free: 9.301 MB / 270.1 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003174/0.003174, allocations: 67.89 kB / 467.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1349, allocations: 61.04 MB / 0.5161 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003461/0.1383, allocations: 1.852 MB / 0.5179 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009719/0.1393, allocations: 0.5191 MB / 0.5185 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.182e-05/0.1394, allocations: 0 / 0.5185 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.1395, allocations: 23.8 kB / 0.5185 GB, free: 4.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1396, allocations: 43.62 kB / 0.5185 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.1398, allocations: 39.89 kB / 0.5186 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.14, allocations: 147.3 kB / 0.5187 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1402, allocations: 42.06 kB / 0.5187 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.1403, allocations: 67.77 kB / 0.5188 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.1404, allocations: 55.64 kB / 0.5189 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.1404, allocations: 12 kB / 0.5189 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.65e-05/0.1405, allocations: 16 kB / 0.5189 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.172e-05/0.1405, allocations: 23.92 kB / 0.5189 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.142e-05/0.1406, allocations: 63.72 kB / 0.519 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.1408, allocations: 147.4 kB / 0.5191 GB, free: 4.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.1408, allocations: 0 / 0.5191 GB, free: 4.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1408, allocations: 0 / 0.5191 GB, free: 4.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1408, allocations: 0 / 0.5191 GB, free: 4.117 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.0006401/0.1414, allocations: 361.8 kB / 0.5195 GB, free: 3.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1415, allocations: 12.03 kB / 0.5195 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.412e-05/0.1415, allocations: 46.73 kB / 0.5195 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.1416, allocations: 16.84 kB / 0.5195 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.1419, allocations: 142.4 kB / 0.5197 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.1419, allocations: 12.38 kB / 0.5197 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.1419, allocations: 20.31 kB / 0.5197 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.1422, allocations: 137.5 kB / 0.5198 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1422, allocations: 0 / 0.5198 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.1422, allocations: 4 kB / 0.5198 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1423, allocations: 4 kB / 0.5198 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.1425, allocations: 79.95 kB / 0.5199 GB, free: 3.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000762/0.1432, allocations: 403.5 kB / 0.5203 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.1435, allocations: 114.4 kB / 0.5204 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1436, allocations: 56.81 kB / 0.5205 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.1436, allocations: 3.938 kB / 0.5205 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.1436, allocations: 34.56 kB / 0.5205 GB, free: 2.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.172e-06/0.1436, allocations: 0 / 0.5205 GB, free: 2.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00157/0.1452, allocations: 0.6717 MB / 0.5211 GB, free: 1.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.1453, allocations: 51.41 kB / 0.5212 GB, free: 1.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.1454, allocations: 141.6 kB / 0.5213 GB, free: 1.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1454, allocations: 29.7 kB / 0.5214 GB, free: 1.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.1455, allocations: 108.4 kB / 0.5215 GB, free: 1.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.1456, allocations: 75.38 kB / 0.5215 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.882e-05/0.1456, allocations: 29.72 kB / 0.5216 GB, free: 1.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.1458, allocations: 334.8 kB / 0.5219 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.906e-05/0.1459, allocations: 39.98 kB / 0.5219 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.146, allocations: 79.34 kB / 0.522 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.1463, allocations: 135.3 kB / 0.5221 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1463, allocations: 0 / 0.5221 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003921/0.1467, allocations: 206.2 kB / 0.5223 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1467, allocations: 7.938 kB / 0.5223 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1467, allocations: 4.031 kB / 0.5223 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/0.1469, allocations: 44.83 kB / 0.5224 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.147, allocations: 35.92 kB / 0.5224 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.1487, allocations: 1.617 MB / 0.524 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.002e-05/0.1487, allocations: 8.031 kB / 0.524 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.1487, allocations: 15.98 kB / 0.524 GB, free: 14.7 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.0001329/0.1489, allocations: 125.8 kB / 0.5241 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.1489, allocations: 15.89 kB / 0.5241 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.149, allocations: 17.17 kB / 0.5242 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.149, allocations: 11.92 kB / 0.5242 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.149, allocations: 0 / 0.5242 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.149, allocations: 0 / 0.5242 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008228/0.1498, allocations: 0.5155 MB / 0.5247 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1498, allocations: 0 / 0.5247 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.15, allocations: 31.98 kB / 0.5247 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.1501, allocations: 28.83 kB / 0.5247 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.1501, allocations: 8 kB / 0.5247 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.1514, allocations: 1.374 MB / 0.5261 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1514, allocations: 0 / 0.5261 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005022/0.1519, allocations: 344.9 kB / 0.5264 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.979e-05/0.1519, allocations: 7.984 kB / 0.5264 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.1519, allocations: 4 kB / 0.5264 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.976e-05/0.152, allocations: 4 kB / 0.5264 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.1521, allocations: 19.91 kB / 0.5264 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1521, allocations: 4 kB / 0.5265 GB, free: 12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.867e-05/0.1522, allocations: 117.7 kB / 0.5266 GB, free: 11.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1522, allocations: 8.125 kB / 0.5266 GB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.1525, allocations: 40 kB / 0.5266 GB, free: 11.84 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.000879/0.1534, allocations: 0.8739 MB / 0.5275 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005115/0.1539, allocations: 258.9 kB / 0.5277 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1539, allocations: 4.125 kB / 0.5277 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.1542, allocations: 188.5 kB / 0.5279 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.1545, allocations: 28.05 kB / 0.5279 GB, free: 10.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.1571, allocations: 2.054 MB / 0.5299 GB, free: 8.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.1572, allocations: 103.7 kB / 0.53 GB, free: 8.152 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.398e-05/0.1573, allocations: 13.42 kB / 0.53 GB, free: 8.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.1574, allocations: 39.42 kB / 0.5301 GB, free: 8.102 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1574, allocations: 0 / 0.5301 GB, free: 8.102 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03532/0.1927, allocations: 3.994 MB / 0.534 GB, free: 4.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.19, allocations: 3.938 kB / 0.534 GB, free: 4.102 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.405987231992185]