Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001475/0.001475, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00167/0.00167, allocations: 212.5 kB / 24.51 MB, free: 3.914 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.343/1.343, allocations: 230.6 MB / 258.3 MB, free: 7.75 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.FirstGrounded,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 39.94 kB / 378.5 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.23, allocations: 53.37 MB / 431.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003843/0.2338, allocations: 2.247 MB / 434.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.235, allocations: 0.6193 MB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.2352, allocations: 11.94 kB / 434.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.2353, allocations: 43.53 kB / 434.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.2355, allocations: 71.34 kB / 434.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.2358, allocations: 55.92 kB / 434.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000336/0.2361, allocations: 262.8 kB / 435.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.2363, allocations: 65.27 kB / 435.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.2365, allocations: 115.6 kB / 435.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.2367, allocations: 111.5 kB / 435.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.2367, allocations: 16 kB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.142e-05/0.2368, allocations: 24 kB / 435.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.603e-05/0.2369, allocations: 43.84 kB / 435.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.237, allocations: 103.5 kB / 435.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.2373, allocations: 245.2 kB / 435.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.2373, allocations: 7.984 kB / 435.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2373, allocations: 0 / 435.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2373, allocations: 0 / 435.9 MB, free: 2.633 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007446/0.2381, allocations: 457.5 kB / 436.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2381, allocations: 12.03 kB / 436.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.674e-05/0.2382, allocations: 8.625 kB / 436.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.059e-05/0.2382, allocations: 58.72 kB / 436.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.2384, allocations: 28.8 kB / 436.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.2387, allocations: 186.8 kB / 436.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.2388, allocations: 12.81 kB / 436.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.2388, allocations: 20.38 kB / 436.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004272/0.2392, allocations: 221.7 kB / 436.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.2393, allocations: 3.953 kB / 436.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.2393, allocations: 12 kB / 436.9 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.2393, allocations: 4 kB / 436.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002727/0.2396, allocations: 121.7 kB / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.2406, allocations: 0.6306 MB / 437.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.2409, allocations: 138.5 kB / 437.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.241, allocations: 70.89 kB / 437.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.2411, allocations: 4 kB / 437.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.2411, allocations: 34.56 kB / 437.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.764e-06/0.2411, allocations: 0 / 437.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001661/0.2428, allocations: 0.7406 MB / 438.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.2428, allocations: 51.41 kB / 438.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.243, allocations: 184.3 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.2431, allocations: 29.7 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.2432, allocations: 148.4 kB / 439 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.292e-05/0.2433, allocations: 95.2 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.2434, allocations: 45.7 kB / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2435, allocations: 326.8 kB / 439.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.2436, allocations: 59.91 kB / 439.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.2438, allocations: 104.2 kB / 439.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.2441, allocations: 164.2 kB / 439.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2441, allocations: 4 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004569/0.2446, allocations: 254.1 kB / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2446, allocations: 4 kB / 440 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2446, allocations: 3.984 kB / 440 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001722/0.2447, allocations: 44.89 kB / 440.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.245, allocations: 43.97 kB / 440.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.2463, allocations: 1.369 MB / 441.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.2464, allocations: 12.03 kB / 441.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2464, allocations: 12 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001451/0.2466, allocations: 137.8 kB / 441.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.854e-05/0.2466, allocations: 23.86 kB / 441.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.175e-05/0.2467, allocations: 29.89 kB / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2467, allocations: 0 / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2467, allocations: 4 kB / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2467, allocations: 0 / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.2477, allocations: 0.5925 MB / 442.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.2477, allocations: 8.062 kB / 442.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.2479, allocations: 39.97 kB / 442.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/0.248, allocations: 32.98 kB / 442.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.2481, allocations: 8 kB / 442.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.2493, allocations: 1.389 MB / 443.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2493, allocations: 0 / 443.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.2499, allocations: 412.7 kB / 444.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.492e-05/0.2499, allocations: 19.86 kB / 444.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.2499, allocations: 4 kB / 444.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.2501, allocations: 4 kB / 444.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.2501, allocations: 31.83 kB / 444.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.2501, allocations: 4 kB / 444.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.2502, allocations: 129.2 kB / 444.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2502, allocations: 0 / 444.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003261/0.2506, allocations: 60 kB / 444.4 MB, free: 9.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0009366/0.2515, allocations: 0.9341 MB / 445.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005539/0.2521, allocations: 282.7 kB / 445.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2521, allocations: 4.188 kB / 445.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.2524, allocations: 210.6 kB / 445.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.2528, allocations: 47.8 kB / 445.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003353/0.2561, allocations: 2.55 MB / 448.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.2563, allocations: 142.5 kB / 448.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.569e-05/0.2564, allocations: 13.95 kB / 448.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.2565, allocations: 67.41 kB / 448.7 MB, free: 5 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2565, allocations: 0 / 448.7 MB, free: 5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03017/0.2866, allocations: 5.168 MB / 453.8 MB, free: 24 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.47, allocations: 14.69 kB / 453.9 MB, free: 12 kB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.730674549005926]