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.001492/0.001492, allocations: 111.7 kB / 19.69 MB, free: 2.188 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.001722/0.001722, allocations: 213.4 kB / 23.01 MB, free: 5.004 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.435/1.435, allocations: 207.6 MB / 233.8 MB, free: 10.01 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.2261/0.2261, allocations: 44.24 MB / 330.3 MB, free: 9.621 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.002348/0.002348, allocations: 83.81 kB / 467.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1173, allocations: 61.03 MB / 0.5161 GB, free: 7.379 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004348/0.1216, allocations: 1.941 MB / 0.518 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1229, allocations: 0.5386 MB / 0.5185 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.123, allocations: 7.938 kB / 0.5186 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.1231, allocations: 19.8 kB / 0.5186 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.1233, allocations: 43.62 kB / 0.5186 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.1235, allocations: 43.94 kB / 0.5187 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002256/0.1237, allocations: 143.3 kB / 0.5188 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1239, allocations: 57.98 kB / 0.5188 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.124, allocations: 55.78 kB / 0.5189 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.1242, allocations: 63.7 kB / 0.519 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.1242, allocations: 12 kB / 0.519 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.565e-05/0.1242, allocations: 12 kB / 0.519 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.653e-05/0.1243, allocations: 31.92 kB / 0.519 GB, free: 4.387 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.1243, allocations: 71.66 kB / 0.5191 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.1246, allocations: 147.3 kB / 0.5192 GB, free: 4.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1246, allocations: 4 kB / 0.5192 GB, free: 4.168 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1246, allocations: 0 / 0.5192 GB, free: 4.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1246, allocations: 0 / 0.5192 GB, free: 4.168 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.0006111/0.1252, allocations: 357.7 kB / 0.5196 GB, free: 3.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.1253, allocations: 12.03 kB / 0.5196 GB, free: 3.777 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.886e-05/0.1253, allocations: 46.73 kB / 0.5196 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.324e-05/0.1254, allocations: 20.84 kB / 0.5196 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.1257, allocations: 142.3 kB / 0.5198 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.1257, allocations: 8.375 kB / 0.5198 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.1257, allocations: 20.27 kB / 0.5198 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.126, allocations: 137.5 kB / 0.5199 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.126, allocations: 0 / 0.5199 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.126, allocations: 4 kB / 0.5199 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.126, allocations: 7.938 kB / 0.5199 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.1262, allocations: 83.95 kB / 0.52 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007304/0.127, allocations: 427.4 kB / 0.5204 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.1272, allocations: 110.5 kB / 0.5205 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.1273, allocations: 52.84 kB / 0.5206 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.1273, allocations: 11.92 kB / 0.5206 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.1274, allocations: 30.56 kB / 0.5206 GB, free: 2.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.1274, allocations: 0 / 0.5206 GB, free: 2.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001513/0.1289, allocations: 0.6681 MB / 0.5213 GB, free: 1.871 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.1289, allocations: 55.39 kB / 0.5213 GB, free: 1.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.129, allocations: 138.2 kB / 0.5215 GB, free: 1.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.1291, allocations: 29.7 kB / 0.5215 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.267e-05/0.1291, allocations: 108.4 kB / 0.5216 GB, free: 1.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.875e-05/0.1292, allocations: 67.39 kB / 0.5217 GB, free: 1.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/0.1293, allocations: 37.7 kB / 0.5217 GB, free: 1.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1294, allocations: 330.8 kB / 0.522 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.1295, allocations: 51.91 kB / 0.5221 GB, free: 1.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.1296, allocations: 75.34 kB / 0.5221 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.1299, allocations: 131.4 kB / 0.5223 GB, free: 0.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1299, allocations: 4 kB / 0.5223 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003969/0.1303, allocations: 206.2 kB / 0.5225 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.1303, allocations: 13.34 kB / 0.5225 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1303, allocations: 0 / 0.5225 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001773/0.1305, allocations: 40.83 kB / 0.5225 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1306, allocations: 31.98 kB / 0.5225 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.1323, allocations: 1.637 MB / 0.5241 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.261e-05/0.1324, allocations: 8.031 kB / 0.5242 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.1324, allocations: 4 kB / 0.5242 GB, free: 14.73 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.0001351/0.1325, allocations: 133.8 kB / 0.5243 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.1326, allocations: 7.953 kB / 0.5243 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.1326, allocations: 21.12 kB / 0.5243 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1326, allocations: 7.984 kB / 0.5243 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1326, allocations: 11.98 kB / 0.5243 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1326, allocations: 0 / 0.5243 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008139/0.1335, allocations: 0.5146 MB / 0.5248 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1335, allocations: 0 / 0.5248 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.1336, allocations: 35.92 kB / 0.5249 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.1337, allocations: 36.86 kB / 0.5249 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.1338, allocations: 8 kB / 0.5249 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.135, allocations: 1.377 MB / 0.5263 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.135, allocations: 0 / 0.5263 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005372/0.1355, allocations: 345 kB / 0.5266 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.544e-05/0.1355, allocations: 16.06 kB / 0.5266 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1356, allocations: 0 / 0.5266 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.1357, allocations: 12 kB / 0.5266 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.1357, allocations: 19.81 kB / 0.5266 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.1357, allocations: 8 kB / 0.5266 GB, free: 11.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.185e-05/0.1358, allocations: 106.7 kB / 0.5267 GB, free: 11.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1358, allocations: 0 / 0.5267 GB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003535/0.1362, allocations: 44 kB / 0.5268 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.0008705/0.137, allocations: 0.879 MB / 0.5276 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005565/0.1376, allocations: 258.8 kB / 0.5279 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1376, allocations: 0 / 0.5279 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.1379, allocations: 186.6 kB / 0.5281 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.0003703/0.1383, allocations: 22.36 kB / 0.5281 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.141, allocations: 2.058 MB / 0.5301 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1414, allocations: 0.7166 MB / 0.5308 GB, free: 7.535 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.876e-05/0.1414, allocations: 13.53 kB / 0.5308 GB, free: 7.523 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.497e-05/0.1415, allocations: 47.36 kB / 0.5309 GB, free: 7.477 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1415, allocations: 0 / 0.5309 GB, free: 7.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0359/0.1774, allocations: 3.594 MB / 0.5344 GB, free: 3.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.14, allocations: 11.95 kB / 0.5344 GB, free: 3.863 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.231130216037855]