Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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.00134/0.00134, allocations: 124.4 kB / 17.79 MB, free: 5.355 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.001415/0.001415, allocations: 203.3 kB / 20.74 MB, free: 2.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 254.1 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 55.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09164, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003831/0.09547, allocations: 2.377 MB / 428.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.09669, allocations: 0.6505 MB / 429.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.09686, allocations: 7.938 kB / 429.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.09703, allocations: 35.59 kB / 429.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.09725, allocations: 83.33 kB / 429.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.09751, allocations: 67.84 kB / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.09787, allocations: 270.7 kB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.09807, allocations: 70.77 kB / 429.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.09831, allocations: 123.6 kB / 430 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.09849, allocations: 115.4 kB / 430.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.09853, allocations: 20 kB / 430.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.931e-05/0.09861, allocations: 28 kB / 430.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.856e-05/0.09865, allocations: 51.77 kB / 430.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.09877, allocations: 123.4 kB / 430.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.09913, allocations: 274.8 kB / 430.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.09914, allocations: 4 kB / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09914, allocations: 0 / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.09915, allocations: 0 / 430.6 MB, free: 0.5117 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000819/0.09997, allocations: 0.526 MB / 431.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1, allocations: 12.03 kB / 431.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.578e-05/0.1001, allocations: 58.73 kB / 431.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.1002, allocations: 40.73 kB / 431.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.1006, allocations: 236.8 kB / 431.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.1006, allocations: 16.81 kB / 431.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.772e-05/0.1007, allocations: 28.33 kB / 431.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003688/0.101, allocations: 203.3 kB / 431.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.101, allocations: 3.984 kB / 431.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.1011, allocations: 16 kB / 431.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.1011, allocations: 4 kB / 431.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.1014, allocations: 137.7 kB / 431.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009711/0.1023, allocations: 0.6231 MB / 432.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.1026, allocations: 178.4 kB / 432.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.1028, allocations: 91.2 kB / 432.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.1028, allocations: 4 kB / 432.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1029, allocations: 30.56 kB / 432.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.1029, allocations: 0 / 432.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.001988/0.1049, allocations: 1.085 MB / 433.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.1049, allocations: 59.28 kB / 433.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.1051, allocations: 182.3 kB / 434.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.1051, allocations: 33.7 kB / 434.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.707e-05/0.1052, allocations: 144.8 kB / 434.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.932e-05/0.1053, allocations: 115 kB / 434.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.497e-05/0.1054, allocations: 53.7 kB / 434.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1055, allocations: 330.8 kB / 434.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.1057, allocations: 71.97 kB / 434.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001776/0.1058, allocations: 102.8 kB / 434.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003259/0.1062, allocations: 192.1 kB / 435.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1062, allocations: 0 / 435.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005342/0.1067, allocations: 295.2 kB / 435.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1067, allocations: 8 kB / 435.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1067, allocations: 0 / 435.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001763/0.1069, allocations: 44.89 kB / 435.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.1071, allocations: 55.91 kB / 435.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.1088, allocations: 1.744 MB / 437.3 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.1089, allocations: 11.98 kB / 437.3 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.1089, allocations: 12 kB / 437.3 MB, free: 9.348 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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.0001517/0.1091, allocations: 137.8 kB / 437.4 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.282e-05/0.1091, allocations: 31.78 kB / 437.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.042e-05/0.1092, allocations: 30.64 kB / 437.5 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1092, allocations: 4 kB / 437.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1092, allocations: 0 / 437.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.1092, allocations: 0 / 437.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.1103, allocations: 0.7815 MB / 438.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.1103, allocations: 0 / 438.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.1106, allocations: 55.91 kB / 438.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001285/0.1107, allocations: 36.83 kB / 438.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.1108, allocations: 11.94 kB / 438.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001261/0.112, allocations: 1.489 MB / 439.8 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.112, allocations: 4.094 kB / 439.8 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007184/0.1127, allocations: 482.6 kB / 440.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.716e-05/0.1128, allocations: 101.2 kB / 440.4 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.1129, allocations: 8 kB / 440.4 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.113, allocations: 11.94 kB / 440.4 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.829e-05/0.1131, allocations: 31.95 kB / 440.5 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1131, allocations: 12 kB / 440.5 MB, free: 5.848 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.1132, allocations: 136.3 kB / 440.6 MB, free: 5.715 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1132, allocations: 0 / 440.6 MB, free: 5.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003832/0.1136, allocations: 64 kB / 440.7 MB, free: 5.652 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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.001104/0.1147, allocations: 1.021 MB / 441.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006442/0.1153, allocations: 330.4 kB / 442 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1153, allocations: 0 / 442 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.1157, allocations: 230.5 kB / 442.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004491/0.1162, allocations: 57.22 kB / 442.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.12, allocations: 2.759 MB / 445.1 MB, free: 1.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.1204, allocations: 0.7601 MB / 445.8 MB, free: 316 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.458e-05/0.1205, allocations: 22.28 kB / 445.8 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.1206, allocations: 75.41 kB / 445.9 MB, free: 220 kB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1206, allocations: 0 / 445.9 MB, free: 220 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1949/0.3155, allocations: 5.318 MB / 451.2 MB, free: 24.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.86/10.18, allocations: 4.562 kB / 451.2 MB, free: 24.18 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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: 12.530509599018842]