Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001641/0.001641, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001907/0.001907, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.446/1.446, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.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.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_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",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.002027/0.002027, allocations: 55.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2749, allocations: 49.17 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003233/0.2782, allocations: 2.359 MB / 398.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009754/0.2791, allocations: 0.6469 MB / 399.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.2793, allocations: 4.719 kB / 399.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.2794, allocations: 37.03 kB / 399.4 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.2796, allocations: 79.42 kB / 399.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.2798, allocations: 64.61 kB / 399.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002957/0.2801, allocations: 262.4 kB / 399.8 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.2803, allocations: 86.03 kB / 399.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.2805, allocations: 110 kB / 400 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.2806, allocations: 118 kB / 400.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.959e-05/0.2807, allocations: 21.25 kB / 400.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.418e-05/0.2807, allocations: 20.72 kB / 400.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.293e-05/0.2808, allocations: 46.42 kB / 400.2 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2809, allocations: 120.1 kB / 400.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.2812, allocations: 267.8 kB / 400.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2812, allocations: 5.469 kB / 400.6 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2812, allocations: 0 / 400.6 MB, free: 6.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.2812, allocations: 0 / 400.6 MB, free: 6.277 MB / 318.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.0006689/0.2819, allocations: 456.4 kB / 401 MB, free: 5.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2819, allocations: 13.97 kB / 401 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.45e-05/0.282, allocations: 53.97 kB / 401.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.92e-05/0.282, allocations: 30.09 kB / 401.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.2823, allocations: 191.1 kB / 401.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.2823, allocations: 21.19 kB / 401.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.2824, allocations: 28.28 kB / 401.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.2827, allocations: 195.2 kB / 401.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.2827, allocations: 2.047 kB / 401.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.2827, allocations: 6.844 kB / 401.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.2828, allocations: 9.344 kB / 401.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.283, allocations: 142.1 kB / 401.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008861/0.2839, allocations: 0.5824 MB / 402.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.2842, allocations: 167 kB / 402.4 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.2844, allocations: 96.67 kB / 402.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.2844, allocations: 10.38 kB / 402.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2844, allocations: 36.27 kB / 402.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.183e-06/0.2844, allocations: 0 / 402.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001791/0.2862, allocations: 0.915 MB / 403.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.2863, allocations: 58.69 kB / 403.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.2864, allocations: 185.1 kB / 403.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.2864, allocations: 30.92 kB / 403.8 MB, free: 4.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.504e-05/0.2865, allocations: 144.8 kB / 403.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.2866, allocations: 115.2 kB / 404 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.2866, allocations: 59.88 kB / 404.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.731e-05/0.2867, allocations: 334.6 kB / 404.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.2868, allocations: 63.92 kB / 404.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.287, allocations: 106.8 kB / 404.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.2873, allocations: 199.6 kB / 404.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.2873, allocations: 0 / 404.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000456/0.2877, allocations: 290.9 kB / 405 MB, free: 3.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2877, allocations: 5.062 kB / 405.1 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2877, allocations: 1.188 kB / 405.1 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001757/0.2879, allocations: 41.77 kB / 405.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.2882, allocations: 65.48 kB / 405.2 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.2893, allocations: 1.642 MB / 406.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.2894, allocations: 7.875 kB / 406.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.2894, allocations: 11.5 kB / 406.8 MB, free: 1.68 MB / 318.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.0001007/0.2895, allocations: 136 kB / 407 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.2895, allocations: 26.08 kB / 407 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.2896, allocations: 33.31 kB / 407 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2896, allocations: 8.219 kB / 407 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2896, allocations: 0 / 407 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2896, allocations: 3 kB / 407 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009489/0.2905, allocations: 0.7462 MB / 407.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2905, allocations: 1.375 kB / 407.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.2908, allocations: 66.02 kB / 407.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001034/0.2909, allocations: 32.78 kB / 407.9 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.2909, allocations: 11.3 kB / 407.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009763/0.2919, allocations: 1.391 MB / 409.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.2919, allocations: 5.094 kB / 409.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.2926, allocations: 496.4 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.2927, allocations: 20.58 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.2927, allocations: 7.156 kB / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2929, allocations: 9.062 kB / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.633e-05/0.2929, allocations: 28.09 kB / 409.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.2929, allocations: 6.656 kB / 409.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000139/0.2931, allocations: 130.8 kB / 410 MB, free: 15.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2931, allocations: 0 / 410 MB, free: 15.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.2935, allocations: 69.72 kB / 410 MB, free: 15.16 MB / 334.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.001134/0.2946, allocations: 1.008 MB / 411 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006702/0.2953, allocations: 327.7 kB / 411.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2953, allocations: 0 / 411.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003729/0.2957, allocations: 245.5 kB / 411.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004532/0.2961, allocations: 39.41 kB / 411.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.3002, allocations: 2.756 MB / 414.4 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.3006, allocations: 0.7556 MB / 415.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.3008, allocations: 29.83 kB / 415.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3009, allocations: 73.06 kB / 415.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3009, allocations: 0 / 415.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04056/0.3414, allocations: 5.521 MB / 420.8 MB, free: 8.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.99, allocations: 12.92 kB / 420.8 MB, free: 8.66 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.327396529028192]