Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.00119/0.00119, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001268/0.001268, allocations: 188.3 kB / 24.49 MB, free: 3.945 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.312/1.312, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 179] 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.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 51.94 kB / 371.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2237, allocations: 52.18 MB / 423.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003507/0.2272, allocations: 2.242 MB / 425.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009073/0.2282, allocations: 0.5493 MB / 426.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2283, allocations: 4 kB / 426.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.2284, allocations: 39.59 kB / 426.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.2285, allocations: 75.34 kB / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.2287, allocations: 51.92 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.229, allocations: 262.8 kB / 426.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2292, allocations: 60.55 kB / 426.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.2293, allocations: 107.6 kB / 426.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.2295, allocations: 103.5 kB / 426.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.439e-05/0.2295, allocations: 16 kB / 426.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.948e-05/0.2295, allocations: 20 kB / 426.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.559e-05/0.2296, allocations: 47.84 kB / 426.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.2297, allocations: 95.53 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.23, allocations: 259.7 kB / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.23, allocations: 0 / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.23, allocations: 0 / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.23, allocations: 0 / 427.3 MB, free: 10.44 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.0006734/0.2307, allocations: 448.7 kB / 427.7 MB, free: 9.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2307, allocations: 8.031 kB / 427.7 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.695e-05/0.2307, allocations: 4.625 kB / 427.7 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.54e-05/0.2308, allocations: 62.72 kB / 427.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.2308, allocations: 28.75 kB / 427.8 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.2311, allocations: 186.8 kB / 428 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.2311, allocations: 16.81 kB / 428 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.2311, allocations: 16.38 kB / 428 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.2315, allocations: 213.8 kB / 428.2 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.2315, allocations: 11.89 kB / 428.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.2315, allocations: 4 kB / 428.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2315, allocations: 8 kB / 428.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.2318, allocations: 129.6 kB / 428.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009421/0.2327, allocations: 0.6306 MB / 429 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.233, allocations: 134.5 kB / 429.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.2331, allocations: 64.83 kB / 429.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.2331, allocations: 0 / 429.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.2332, allocations: 38.5 kB / 429.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 9.82e-07/0.2332, allocations: 0 / 429.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001464/0.2346, allocations: 0.7399 MB / 430 MB, free: 7.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.2347, allocations: 55.41 kB / 430 MB, free: 7.461 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.2348, allocations: 175.3 kB / 430.2 MB, free: 7.277 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.2348, allocations: 25.7 kB / 430.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.2349, allocations: 148.3 kB / 430.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.285e-05/0.235, allocations: 95.2 kB / 430.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.939e-05/0.2351, allocations: 45.7 kB / 430.5 MB, free: 6.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2352, allocations: 326.8 kB / 430.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.2353, allocations: 59.97 kB / 430.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.2355, allocations: 113.2 kB / 431 MB, free: 6.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.2358, allocations: 160.2 kB / 431.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.2358, allocations: 0 / 431.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004304/0.2362, allocations: 262.1 kB / 431.4 MB, free: 6.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.2362, allocations: 4 kB / 431.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2362, allocations: 8 kB / 431.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000155/0.2364, allocations: 32.83 kB / 431.4 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.2366, allocations: 51.91 kB / 431.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.2378, allocations: 1.374 MB / 432.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.2379, allocations: 16.06 kB / 432.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.2379, allocations: 8 kB / 432.9 MB, free: 4.391 MB / 334.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.0001179/0.238, allocations: 139.5 kB / 433 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-05/0.2381, allocations: 19.86 kB / 433.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.59e-05/0.2381, allocations: 29.89 kB / 433.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2381, allocations: 4 kB / 433.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.746e-06/0.2381, allocations: 3.938 kB / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2381, allocations: 0 / 433.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000858/0.239, allocations: 0.5964 MB / 433.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.239, allocations: 4 kB / 433.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.2392, allocations: 43.91 kB / 433.7 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.2393, allocations: 36.84 kB / 433.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.2393, allocations: 4 kB / 433.8 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.2405, allocations: 1.394 MB / 435.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2405, allocations: 0 / 435.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.241, allocations: 395.4 kB / 435.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.112e-05/0.2411, allocations: 23.86 kB / 435.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.2411, allocations: 0 / 435.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.2412, allocations: 8 kB / 435.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.2412, allocations: 27.97 kB / 435.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.2413, allocations: 7.984 kB / 435.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001024/0.2414, allocations: 127.2 kB / 435.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2414, allocations: 0 / 435.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.2417, allocations: 56 kB / 435.8 MB, free: 1.27 MB / 334.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.0008698/0.2425, allocations: 0.9355 MB / 436.7 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004999/0.243, allocations: 281.3 kB / 437 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.243, allocations: 7.938 kB / 437 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.2433, allocations: 210.6 kB / 437.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.2437, allocations: 36.3 kB / 437.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.2468, allocations: 2.537 MB / 439.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.2469, allocations: 134.3 kB / 439.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.384e-05/0.247, allocations: 29.92 kB / 440 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2471, allocations: 67.42 kB / 440 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2471, allocations: 0 / 440 MB, free: 12.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.2759, allocations: 5.127 MB / 445.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.23, allocations: 11.88 kB / 445.2 MB, free: 7.895 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.444266729056835]