Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.001306/0.001306, allocations: 121.3 kB / 18.45 MB, free: 4.605 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.001294/0.001294, allocations: 189.2 kB / 21.39 MB, free: 1.672 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.448/1.448, allocations: 207.6 MB / 231.8 MB, free: 4.086 MB / 174.1 MB " [Timeout remaining time 178] 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.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(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 51.92 kB / 342.2 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09362, allocations: 49.12 MB / 391.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005829/0.09945, allocations: 4.583 MB / 395.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.102, allocations: 1.377 MB / 397.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000395/0.1024, allocations: 23.81 kB / 397.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004063/0.1028, allocations: 178.2 kB / 397.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003637/0.1032, allocations: 166.3 kB / 397.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007549/0.1039, allocations: 363.5 kB / 398 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.105, allocations: 0.9781 MB / 399 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.1054, allocations: 287 kB / 399.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004445/0.1059, allocations: 338.5 kB / 399.6 MB, free: 436 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.1062, allocations: 342 kB / 400 MB, free: 92 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.1064, allocations: 72 kB / 400 MB, free: 20 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.1066, allocations: 115.9 kB / 400.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.1067, allocations: 175.3 kB / 400.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003821/0.1071, allocations: 425.5 kB / 400.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.1083, allocations: 1.108 MB / 401.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1083, allocations: 4 kB / 401.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1083, allocations: 4 kB / 401.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.1084, allocations: 0 / 401.8 MB, free: 14.2 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001695/0.1101, allocations: 1.172 MB / 403 MB, free: 12.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1101, allocations: 8.031 kB / 403 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.1102, allocations: 130.9 kB / 403.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.1104, allocations: 111.3 kB / 403.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.1114, allocations: 0.6272 MB / 403.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/0.1115, allocations: 58 kB / 403.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.1116, allocations: 87.95 kB / 404 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1129, allocations: 0.8481 MB / 404.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/0.1129, allocations: 15.92 kB / 404.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.113, allocations: 36 kB / 404.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.113, allocations: 20 kB / 405 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008809/0.1139, allocations: 475.3 kB / 405.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/0.1178, allocations: 4.381 MB / 409.8 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005689/0.1184, allocations: 275.6 kB / 410.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.1186, allocations: 137.3 kB / 410.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/0.1188, allocations: 162.6 kB / 410.4 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.1188, allocations: 46.86 kB / 410.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.984e-06/0.1188, allocations: 0 / 410.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00338/0.1222, allocations: 1.749 MB / 412.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.1223, allocations: 59.91 kB / 412.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006748/0.123, allocations: 0.5392 MB / 412.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.123, allocations: 41.64 kB / 412.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/0.1234, allocations: 487.8 kB / 413.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.1236, allocations: 222.1 kB / 413.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.1238, allocations: 142.6 kB / 413.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.124, allocations: 382.8 kB / 414 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.1243, allocations: 161.9 kB / 414.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005832/0.1249, allocations: 455.2 kB / 414.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008879/0.1258, allocations: 0.6751 MB / 415.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.1258, allocations: 4 kB / 415.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001174/0.127, allocations: 0.7388 MB / 416 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.127, allocations: 11.91 kB / 416 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.127, allocations: 11.98 kB / 416 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001837/0.1272, allocations: 48.84 kB / 416.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000585/0.1278, allocations: 175.7 kB / 416.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.1294, allocations: 1.693 MB / 418 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.1297, allocations: 31.98 kB / 418 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.1297, allocations: 32 kB / 418 MB, free: 13 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000349/0.1301, allocations: 241.5 kB / 418.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.767e-05/0.1302, allocations: 83.45 kB / 418.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.1303, allocations: 71.08 kB / 418.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1303, allocations: 4 kB / 418.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1303, allocations: 4 kB / 418.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.1303, allocations: 3.984 kB / 418.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002/0.1323, allocations: 1.408 MB / 419.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1323, allocations: 0 / 419.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/0.1328, allocations: 119.8 kB / 419.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.743e-05/0.1329, allocations: 24.86 kB / 420 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.1329, allocations: 12 kB / 420 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.134, allocations: 1.379 MB / 421.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.134, allocations: 7.938 kB / 421.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.1351, allocations: 0.7779 MB / 422.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.1352, allocations: 140.6 kB / 422.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.211e-05/0.1353, allocations: 16 kB / 422.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1355, allocations: 15.94 kB / 422.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.43e-05/0.1356, allocations: 51.92 kB / 422.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.1356, allocations: 15.98 kB / 422.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004201/0.136, allocations: 359.1 kB / 422.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.136, allocations: 4 kB / 422.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.1367, allocations: 136 kB / 422.9 MB, free: 7.824 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001462/0.1381, allocations: 1.341 MB / 424.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.1392, allocations: 0.5646 MB / 424.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.1392, allocations: 4 kB / 424.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.1396, allocations: 306.8 kB / 425.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006/0.1402, allocations: 94.89 kB / 425.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007872/0.1481, allocations: 6.07 MB / 431.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.1487, allocations: 0.9651 MB / 432.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002672/0.149, allocations: 85.92 kB / 432.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003938/0.1494, allocations: 327.3 kB / 432.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1494, allocations: 4 kB / 432.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04268/0.1921, allocations: 11.93 MB / 444.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.24, allocations: 5 kB / 444.5 MB, free: 1.543 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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: 13.93881409522146]