Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.00125/0.00125, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.0013/0.0013, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.365/1.365, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 47.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006308/0.1138, allocations: 4.594 MB / 422.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002835/0.1166, allocations: 1.333 MB / 423.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004625/0.1171, allocations: 31.81 kB / 423.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004554/0.1175, allocations: 174.2 kB / 423.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004037/0.1179, allocations: 170.3 kB / 424.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008247/0.1188, allocations: 371.4 kB / 424.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1199, allocations: 0.9704 MB / 425.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.1204, allocations: 279 kB / 425.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004613/0.1209, allocations: 334.5 kB / 426 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003969/0.1213, allocations: 349.9 kB / 426.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.1214, allocations: 72 kB / 426.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.1216, allocations: 116 kB / 426.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.1217, allocations: 171.3 kB / 426.7 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004035/0.1221, allocations: 433.5 kB / 427.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.1234, allocations: 1.1 MB / 428.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1234, allocations: 0 / 428.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1234, allocations: 0 / 428.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.1235, allocations: 4 kB / 428.2 MB, free: 2.117 MB / 350.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.001835/0.1253, allocations: 1.172 MB / 429.4 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.1253, allocations: 8.031 kB / 429.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.1255, allocations: 126.9 kB / 429.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.1257, allocations: 111.3 kB / 429.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1267, allocations: 0.639 MB / 430.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.246e-05/0.1268, allocations: 58 kB / 430.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.1269, allocations: 83.95 kB / 430.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.1283, allocations: 0.8442 MB / 431.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/0.1284, allocations: 11.89 kB / 431.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-05/0.1284, allocations: 40 kB / 431.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.1284, allocations: 24 kB / 431.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009164/0.1294, allocations: 471.3 kB / 431.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004392/0.1338, allocations: 4.374 MB / 436.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00065/0.1344, allocations: 284.1 kB / 436.4 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.1346, allocations: 125.6 kB / 436.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/0.1349, allocations: 170.6 kB / 436.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1349, allocations: 42.88 kB / 436.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.345e-06/0.1349, allocations: 4 kB / 436.8 MB, free: 9.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003636/0.1385, allocations: 1.75 MB / 438.5 MB, free: 7.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.1386, allocations: 63.91 kB / 438.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006687/0.1393, allocations: 0.5354 MB / 439.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.1393, allocations: 33.7 kB / 439.2 MB, free: 6.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003851/0.1397, allocations: 495.7 kB / 439.6 MB, free: 6.109 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.1399, allocations: 222.1 kB / 439.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.14, allocations: 142.6 kB / 440 MB, free: 5.746 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.1403, allocations: 378.8 kB / 440.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.1405, allocations: 161.9 kB / 440.5 MB, free: 5.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005302/0.1411, allocations: 459.2 kB / 441 MB, free: 4.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008961/0.142, allocations: 0.6712 MB / 441.6 MB, free: 3.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.142, allocations: 0 / 441.6 MB, free: 3.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001235/0.1432, allocations: 0.7424 MB / 442.4 MB, free: 3.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1432, allocations: 8 kB / 442.4 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.1432, allocations: 8 kB / 442.4 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.1434, allocations: 48.78 kB / 442.5 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.144, allocations: 179.7 kB / 442.6 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.1455, allocations: 1.693 MB / 444.3 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.1458, allocations: 32.06 kB / 444.4 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.1458, allocations: 32 kB / 444.4 MB, free: 0.9375 MB / 366.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.000311/0.1461, allocations: 234.2 kB / 444.6 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.623e-05/0.1462, allocations: 75.47 kB / 444.7 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.1464, allocations: 79.06 kB / 444.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1464, allocations: 4 kB / 444.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.1464, allocations: 4 kB / 444.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1464, allocations: 0 / 444.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1754/0.3218, allocations: 1.419 MB / 446.2 MB, free: 29.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.3218, allocations: 3.438 kB / 446.2 MB, free: 29.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004803/0.3223, allocations: 117.5 kB / 446.3 MB, free: 29.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.3224, allocations: 21.3 kB / 446.3 MB, free: 29.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.3224, allocations: 15.39 kB / 446.3 MB, free: 29.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006888/0.3231, allocations: 1.368 MB / 447.7 MB, free: 28.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3231, allocations: 12.66 kB / 447.7 MB, free: 28.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009266/0.324, allocations: 0.7796 MB / 448.5 MB, free: 28.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.3241, allocations: 146.7 kB / 448.6 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.3242, allocations: 16.53 kB / 448.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.3244, allocations: 17.59 kB / 448.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.789e-05/0.3245, allocations: 38.72 kB / 448.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.3245, allocations: 19.59 kB / 448.7 MB, free: 27.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000432/0.3249, allocations: 362.1 kB / 449.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3249, allocations: 6.594 kB / 449.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007192/0.3257, allocations: 138.6 kB / 449.2 MB, free: 27.82 MB / 366.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.001132/0.3268, allocations: 1.335 MB / 450.6 MB, free: 27.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009367/0.3277, allocations: 0.571 MB / 451.1 MB, free: 26.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3277, allocations: 0 / 451.1 MB, free: 26.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.3281, allocations: 299.8 kB / 451.4 MB, free: 26.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005988/0.3287, allocations: 105.5 kB / 451.5 MB, free: 26.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007052/0.3357, allocations: 6.068 MB / 457.6 MB, free: 23.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.3362, allocations: 0.9645 MB / 458.6 MB, free: 22.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002895/0.3365, allocations: 87.41 kB / 458.7 MB, free: 22.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.3368, allocations: 321.8 kB / 459 MB, free: 22.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3368, allocations: 0 / 459 MB, free: 22.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04671/0.3835, allocations: 11.95 MB / 470.9 MB, free: 19.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.21, allocations: 8.859 kB / 470.9 MB, free: 19.35 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.630132108926773]