Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.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.0008731/0.0008731, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.000814/0.000814, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9096/0.9096, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2613/0.2613, allocations: 34.25 MB / 294.9 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 442.1 MB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.299e-05, allocations: 6.281 kB / 442.2 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.1903/0.1903, allocations: 5.138 MB / 447.3 MB, free: 41.65 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002284/0.1926, allocations: 2.26 MB / 449.5 MB, free: 40.38 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.193, allocations: 57.38 kB / 449.6 MB, free: 40.35 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003305/0.1933, allocations: 235.8 kB / 449.8 MB, free: 40.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1936, allocations: 197.3 kB / 450 MB, free: 40.04 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006919/0.1943, allocations: 469.4 kB / 450.5 MB, free: 39.77 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005381/0.1948, allocations: 1.14 MB / 451.6 MB, free: 39.17 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.1952, allocations: 401.6 kB / 452 MB, free: 38.94 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004111/0.1956, allocations: 0.5596 MB / 452.6 MB, free: 38.68 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.1958, allocations: 277.6 kB / 452.9 MB, free: 38.58 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.1959, allocations: 94.53 kB / 452.9 MB, free: 38.58 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.196, allocations: 158.5 kB / 453.1 MB, free: 38.55 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.726e-05/0.1961, allocations: 219.6 kB / 453.3 MB, free: 38.4 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.1963, allocations: 307.7 kB / 453.6 MB, free: 38.25 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007007/0.197, allocations: 1.284 MB / 454.9 MB, free: 37.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.197, allocations: 3.938 kB / 454.9 MB, free: 37.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.197, allocations: 2.812 kB / 454.9 MB, free: 37.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.197, allocations: 0 / 454.9 MB, free: 37.73 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.0009213/0.1979, allocations: 1.078 MB / 456 MB, free: 36.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.198, allocations: 8.219 kB / 456 MB, free: 36.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.112e-05/0.1981, allocations: 143.9 kB / 456.1 MB, free: 36.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.1982, allocations: 119.6 kB / 456.2 MB, free: 36.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005832/0.1988, allocations: 0.5161 MB / 456.8 MB, free: 36.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.1989, allocations: 72.47 kB / 456.8 MB, free: 36.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-05/0.1989, allocations: 88.19 kB / 456.9 MB, free: 36.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008163/0.1997, allocations: 0.8859 MB / 457.8 MB, free: 35.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.1998, allocations: 21.59 kB / 457.8 MB, free: 35.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.1998, allocations: 36.44 kB / 457.9 MB, free: 35.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.1998, allocations: 21.72 kB / 457.9 MB, free: 35.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007498/0.2006, allocations: 0.5233 MB / 458.4 MB, free: 35.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.2025, allocations: 3.307 MB / 461.7 MB, free: 33.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.2029, allocations: 215.2 kB / 461.9 MB, free: 33.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.203, allocations: 96.66 kB / 462 MB, free: 33.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.2031, allocations: 23.34 kB / 462 MB, free: 33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.438e-05/0.2031, allocations: 36.98 kB / 462.1 MB, free: 32.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=30): time 2.084e-06/0.2031, allocations: 0 / 462.1 MB, free: 32.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=35): time 0.001459/0.2046, allocations: 1.156 MB / 463.2 MB, free: 32.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.2046, allocations: 57.78 kB / 463.3 MB, free: 32.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.2049, allocations: 409.8 kB / 463.7 MB, free: 32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.2049, allocations: 33.02 kB / 463.7 MB, free: 31.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.205, allocations: 479.2 kB / 464.2 MB, free: 31.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.205, allocations: 136.5 kB / 464.3 MB, free: 31.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.2051, allocations: 98.88 kB / 464.4 MB, free: 31.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.301e-05/0.2052, allocations: 365.4 kB / 464.8 MB, free: 31.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2053, allocations: 114 kB / 464.9 MB, free: 31.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.2055, allocations: 305 kB / 465.2 MB, free: 30.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.2058, allocations: 467.6 kB / 465.6 MB, free: 30.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2058, allocations: 3.281 kB / 465.6 MB, free: 30.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000475/0.2063, allocations: 0.5035 MB / 466.1 MB, free: 30.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.2063, allocations: 10.06 kB / 466.2 MB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2063, allocations: 13.47 kB / 466.2 MB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001541/0.2065, allocations: 38.17 kB / 466.2 MB, free: 30.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.2067, allocations: 127.9 kB / 466.3 MB, free: 30.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002084/0.2069, allocations: 0.5621 MB / 466.9 MB, free: 29.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.207, allocations: 17.25 kB / 466.9 MB, free: 29.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.2071, allocations: 24.81 kB / 466.9 MB, free: 29.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.2072, allocations: 230.6 kB / 467.2 MB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.2073, allocations: 53.45 kB / 467.2 MB, free: 29.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003854/0.2077, allocations: 335.7 kB / 467.5 MB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2077, allocations: 7.25 kB / 467.5 MB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2077, allocations: 0 / 467.5 MB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2077, allocations: 4.406 kB / 467.6 MB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008382/0.2085, allocations: 0.9921 MB / 468.5 MB, free: 28.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2085, allocations: 0 / 468.5 MB, free: 28.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.2087, allocations: 79.78 kB / 468.6 MB, free: 28.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.04e-05/0.2088, allocations: 32.86 kB / 468.7 MB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.2088, allocations: 17.62 kB / 468.7 MB, free: 28.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000149/0.209, allocations: 0.552 MB / 469.2 MB, free: 28.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.209, allocations: 2.109 kB / 469.2 MB, free: 28.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004118/0.2094, allocations: 0.5567 MB / 469.8 MB, free: 27.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.381e-05/0.2094, allocations: 46.25 kB / 469.8 MB, free: 27.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.2094, allocations: 10.44 kB / 469.8 MB, free: 27.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.851e-05/0.2095, allocations: 7.156 kB / 469.8 MB, free: 27.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.2096, allocations: 30.61 kB / 469.9 MB, free: 27.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.2096, allocations: 9.656 kB / 469.9 MB, free: 27.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001587/0.2097, allocations: 273.2 kB / 470.2 MB, free: 27.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2097, allocations: 0 / 470.2 MB, free: 27.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003176/0.21, allocations: 129.4 kB / 470.3 MB, free: 27.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005916/0.2106, allocations: 1.116 MB / 471.4 MB, free: 26.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004458/0.2111, allocations: 319.4 kB / 471.7 MB, free: 26.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2111, allocations: 1.688 kB / 471.7 MB, free: 26.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.2112, allocations: 140 kB / 471.8 MB, free: 26.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.2116, allocations: 77.41 kB / 471.9 MB, free: 26.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.215, allocations: 4.663 MB / 476.6 MB, free: 23.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.2152, allocations: 365.3 kB / 476.9 MB, free: 23.21 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.2153, allocations: 69.19 kB / 477 MB, free: 23.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.2155, allocations: 295.7 kB / 477.3 MB, free: 22.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/0.2155, allocations: 0 / 477.3 MB, free: 22.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03116/0.2467, allocations: 10.16 MB / 487.5 MB, free: 21.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.748/7.995, allocations: 1.062 kB / 487.5 MB, free: 21.14 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.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: 10.008435596711934]